Skip to content

Commit

Permalink
(_dl_update_slotinfo): Copy all of the initial DTV.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Oct 16, 2008
1 parent 472e5e0 commit fb862ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elf/dl-tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit fb862ac

Please sign in to comment.