mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
2000-05-08 Jakub Jelinek <jakub@redhat.com>
* elf/dl-lookup.c (add_dependency): Reallocate l_reldeps in sizeof(struct link_map *) chunks, not in bytes.
This commit is contained in:
parent
33f5839ff3
commit
f7d07c10a6
@ -137,7 +137,8 @@ add_dependency (struct link_map *undef_map, struct link_map *map)
|
||||
|
||||
undef_map->l_reldepsmax += 5;
|
||||
newp = realloc (undef_map->l_reldeps,
|
||||
undef_map->l_reldepsmax);
|
||||
undef_map->l_reldepsmax
|
||||
* sizeof(struct link_map *));
|
||||
|
||||
if (__builtin_expect (newp != NULL, 1))
|
||||
undef_map->l_reldeps = (struct link_map **) newp;
|
||||
|
Loading…
Reference in New Issue
Block a user