aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2002-07-19 14:27:09 +0000
committerKen Raeburn2002-07-19 14:27:09 +0000
commitea64076a0143c21f56e8ce09b179f53945c0a7c5 (patch)
tree1328e10e6aba629fc367c9d0a99d70ea53067718 /src
parentc6fac61f1cb5fcc8e6b76f07126fe7f8f1cf6a67 (diff)
downloademacs-ea64076a0143c21f56e8ce09b179f53945c0a7c5.tar.gz
emacs-ea64076a0143c21f56e8ce09b179f53945c0a7c5.zip
(safe_bcopy): Source pointer now points to const.
Diffstat (limited to 'src')
-rw-r--r--src/dispnew.c5
1 files 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,
440 440
441void 441void
442safe_bcopy (from, to, size) 442safe_bcopy (from, to, size)
443 char *from, *to; 443 const char *from;
444 char *to;
444 int size; 445 int size;
445{ 446{
446 if (size <= 0 || from == to) 447 if (size <= 0 || from == to)
@@ -455,7 +456,7 @@ safe_bcopy (from, to, size)
455 /* Otherwise, we'll copy from the end. */ 456 /* Otherwise, we'll copy from the end. */
456 else 457 else
457 { 458 {
458 register char *endf = from + size; 459 register const char *endf = from + size;
459 register char *endt = to + size; 460 register char *endt = to + size;
460 461
461 /* If TO - FROM is large, then we should break the copy into 462 /* If TO - FROM is large, then we should break the copy into