aboutsummaryrefslogtreecommitdiff
path: root/elf
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2000-05-08 12:59:12 +0000
committerAndreas Jaeger <aj@suse.de>2000-05-08 12:59:12 +0000
commitf7d07c10a60e7a082b174e1c98b30108bd5d8834 (patch)
tree27ceb3953d4c7cfc221a30f3945c68d092c99821 /elf
parent33f5839ff3a9068d0804f90db652c2d3c1cd9789 (diff)
downloadglibc-f7d07c10a60e7a082b174e1c98b30108bd5d8834.tar
glibc-f7d07c10a60e7a082b174e1c98b30108bd5d8834.tar.gz
glibc-f7d07c10a60e7a082b174e1c98b30108bd5d8834.tar.bz2
glibc-f7d07c10a60e7a082b174e1c98b30108bd5d8834.zip
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.
Diffstat (limited to 'elf')
-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;