changeset 46551:227785e3e29f

(safe_bcopy): Source pointer now points to const.
author Ken Raeburn <raeburn@raeburn.org>
date Fri, 19 Jul 2002 14:27:09 +0000
parents 8166be020c03
children cb055b77d3c6
files src/dispnew.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/dispnew.c	Fri Jul 19 14:27:04 2002 +0000
+++ b/src/dispnew.c	Fri Jul 19 14:27:09 2002 +0000
@@ -440,7 +440,8 @@
 
 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 @@
   /* 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