diff options
| author | Ken Raeburn | 2002-07-19 14:27:09 +0000 |
|---|---|---|
| committer | Ken Raeburn | 2002-07-19 14:27:09 +0000 |
| commit | ea64076a0143c21f56e8ce09b179f53945c0a7c5 (patch) | |
| tree | 1328e10e6aba629fc367c9d0a99d70ea53067718 /src | |
| parent | c6fac61f1cb5fcc8e6b76f07126fe7f8f1cf6a67 (diff) | |
| download | emacs-ea64076a0143c21f56e8ce09b179f53945c0a7c5.tar.gz emacs-ea64076a0143c21f56e8ce09b179f53945c0a7c5.zip | |
(safe_bcopy): Source pointer now points to const.
Diffstat (limited to 'src')
| -rw-r--r-- | src/dispnew.c | 5 |
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 | ||
| 441 | void | 441 | void |
| 442 | safe_bcopy (from, to, size) | 442 | safe_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 |