aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGerd Moellmann2000-08-15 19:24:42 +0000
committerGerd Moellmann2000-08-15 19:24:42 +0000
commita2407477eaa3e4107ae2968f2edda042105dbf94 (patch)
tree3a179a61825abfe8e5a417c2ff930e9fc43cb6dc /src
parent32dc52f71a51f7f73cb22f3c681ad32a71b7777c (diff)
downloademacs-a2407477eaa3e4107ae2968f2edda042105dbf94.tar.gz
emacs-a2407477eaa3e4107ae2968f2edda042105dbf94.zip
(compact_small_strings): Use safe_bcopy, add an
assertion.
Diffstat (limited to 'src')
-rw-r--r--src/alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alloc.c b/src/alloc.c
index 497c01c707d..b955c951ec8 100644
--- a/src/alloc.c
+++ b/src/alloc.c
@@ -1280,7 +1280,8 @@ compact_small_strings ()
1280 /* Copy, and update the string's `data' pointer. */ 1280 /* Copy, and update the string's `data' pointer. */
1281 if (from != to) 1281 if (from != to)
1282 { 1282 {
1283 bcopy (from, to, nbytes); 1283 xassert (tb != b || to <= from);
1284 safe_bcopy ((char *) from, (char *) to, nbytes);
1284 to->string->data = to->u.data; 1285 to->string->data = to->u.data;
1285 } 1286 }
1286 1287