From 00c9c33c29b7b97bfa17442b0c4b14faa1507823 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Wed, 19 Jul 2000 11:05:32 +0000 Subject: [PATCH] (allocate_string_data): Don't copy old string contents. --- src/alloc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.2