diff options
author | Gerd Moellmann <[email protected]> | 2000-07-19 11:05:32 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2000-07-19 11:05:32 +0000 |
commit | 00c9c33c29b7b97bfa17442b0c4b14faa1507823 (patch) | |
tree | 8d7f6441811c570146b2e018e2a63412fdc4b2b3 /src | |
parent | a893064df5e3a695fc3c49a52569bd3366c9607f (diff) |
(allocate_string_data): Don't copy old string contents.
Diffstat (limited to 'src')
-rw-r--r-- | src/alloc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/alloc.c b/src/alloc.c index 4dc0b8165f..38ae9d3492 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; } |