From ea64076a0143c21f56e8ce09b179f53945c0a7c5 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Fri, 19 Jul 2002 14:27:09 +0000 Subject: [PATCH] (safe_bcopy): Source pointer now points to const. --- src/dispnew.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.5