From: Gerd Moellmann Date: Wed, 19 Jul 2000 11:05:32 +0000 (+0000) Subject: (allocate_string_data): Don't copy old string contents. X-Git-Tag: emacs-pretest-21.0.90~2737 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=00c9c33c29b7b97bfa17442b0c4b14faa1507823;p=emacs.git (allocate_string_data): Don't copy old string contents. --- diff --git a/src/alloc.c b/src/alloc.c index 4dc0b8165fa..38ae9d34924 100644 --- a/src/alloc.c +++ b/src/alloc.c @@ -1091,10 +1091,9 @@ allocate_string_data (s, nchars, nbytes) /* 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; }