aboutsummaryrefslogtreecommitdiff
path: root/elf/dl-lookup.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/dl-lookup.c')
-rw-r--r--elf/dl-lookup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c
index c38e2e81f7..c4eb8a664d 100644
--- a/elf/dl-lookup.c
+++ b/elf/dl-lookup.c
@@ -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;