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:
Andreas Jaeger 2000-05-08 12:59:12 +00:00
parent 33f5839ff3
commit f7d07c10a6

View File

@ -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;