comparison 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
comparison
equal deleted inserted replaced
30822:9a001fb66358 30823:8ee3740aaf60
1278 } 1278 }
1279 1279
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
1287 /* Advance past the sdata we copied to. */ 1288 /* Advance past the sdata we copied to. */
1288 to = to_end; 1289 to = to_end;