]> git.eshelyaron.com Git - emacs.git/commitdiff
(compact_small_strings): Use safe_bcopy, add an
authorGerd Moellmann <gerd@gnu.org>
Tue, 15 Aug 2000 19:24:42 +0000 (19:24 +0000)
committerGerd Moellmann <gerd@gnu.org>
Tue, 15 Aug 2000 19:24:42 +0000 (19:24 +0000)
assertion.

src/alloc.c

index 497c01c707d8c6385c6291be14ef4fea6752d173..b955c951ec85eb37b342db460436f05adf4a0661 100644 (file)
@@ -1280,7 +1280,8 @@ compact_small_strings ()
              /* 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;
                }