# HG changeset patch # User Ken Raeburn # Date 1027088829 0 # Node ID 227785e3e29fb58f1980cd75df319a8b6a2403c6 # Parent 8166be020c03b7325d4ddeffc86beadd7c30457f (safe_bcopy): Source pointer now points to const. diff -r 8166be020c03 -r 227785e3e29f src/dispnew.c --- 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