From: Ken Raeburn Date: Fri, 19 Jul 2002 14:27:09 +0000 (+0000) Subject: (safe_bcopy): Source pointer now points to const. X-Git-Tag: ttn-vms-21-2-B4~13975 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea64076a0143c21f56e8ce09b179f53945c0a7c5;p=emacs.git (safe_bcopy): Source pointer now points to const. --- diff --git a/src/dispnew.c b/src/dispnew.c index 1467fd6eba7..1d9ae986a37 100644 --- a/src/dispnew.c +++ b/src/dispnew.c @@ -440,7 +440,8 @@ DEFUN ("dump-redisplay-history", Fdump_redisplay_history, void safe_bcopy (from, to, size) - char *from, *to; + const char *from; + char *to; int size; { if (size <= 0 || from == to) @@ -455,7 +456,7 @@ safe_bcopy (from, to, size) /* Otherwise, we'll copy from the end. */ else { - register char *endf = from + size; + register const char *endf = from + size; register char *endt = to + size; /* If TO - FROM is large, then we should break the copy into