changeset 30823:8ee3740aaf60

(compact_small_strings): Use safe_bcopy, add an assertion.
author Gerd Moellmann <gerd@gnu.org>
date Tue, 15 Aug 2000 19:24:42 +0000
parents 9a001fb66358
children 44991e974f6d
files src/alloc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/alloc.c	Tue Aug 15 15:02:30 2000 +0000
+++ b/src/alloc.c	Tue Aug 15 19:24:42 2000 +0000
@@ -1280,7 +1280,8 @@
 	      /* Copy, and update the string's `data' pointer.  */
 	      if (from != to)
 		{
-		  bcopy (from, to, nbytes);
+		  xassert (tb != b || to <= from);
+		  safe_bcopy ((char *) from, (char *) to, nbytes);
 		  to->string->data = to->u.data;
 		}