]> git.eshelyaron.com Git - emacs.git/commitdiff
(safe_bcopy): Source pointer now points to const.
authorKen Raeburn <raeburn@raeburn.org>
Fri, 19 Jul 2002 14:27:09 +0000 (14:27 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Fri, 19 Jul 2002 14:27:09 +0000 (14:27 +0000)
src/dispnew.c

index 1467fd6eba7fa5f7d165b011ed52ffa517f34a0c..1d9ae986a374ce7523cb7df2de37de08adc95d91 100644 (file)
@@ -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