diff options
-rw-r--r-- | elf/dl-tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 54c3590..edbc953 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -634,7 +634,7 @@ _dl_update_slotinfo (unsigned long int req_modid) newp = malloc ((2 + newsize) * sizeof (dtv_t)); if (newp == NULL) oom (); - memcpy (newp, &dtv[-1], oldsize * sizeof (dtv_t)); + memcpy (newp, &dtv[-1], (2 * oldsize) * sizeof (dtv_t)); } else { |