Mercurial > emacs
diff src/alloc.c @ 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 | dbc1e69a89a9 |
| children | 6362b1fc09f2 |
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; }
