# HG changeset patch # User Gerd Moellmann # Date 964004732 0 # Node ID 96e65dc07fd7744b9eb0f33d59ca218f39f547bb # Parent a0e2fa7d8bb7969c04b8693fd6a86a169020a599 (allocate_string_data): Don't copy old string contents. diff -r a0e2fa7d8bb7 -r 96e65dc07fd7 src/alloc.c --- a/src/alloc.c Wed Jul 19 11:04:18 2000 +0000 +++ b/src/alloc.c Wed Jul 19 11:05:32 2000 +0000 @@ -1091,10 +1091,9 @@ /* If S had already data assigned, mark that as free by setting its string back-pointer to null, and recording the size of the data - in it.. Copy old string contents to the new sdata. */ + in it. */ if (old_data) { - bcopy (old_data->u.data, s->data, old_nbytes); old_data->u.nbytes = old_nbytes; old_data->string = NULL; }