diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-11-20 02:25:52 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-11-20 02:25:52 +0000 |
commit | 228589d285c9d65e361d52b8de99e81dc7e6cee0 (patch) | |
tree | 867f4262943f637938f36ad544d607b9e18fb0bb | |
parent | 011ebfaba713c799ece413fd342eb81a6b5d0740 (diff) | |
download | glibc-228589d285c9d65e361d52b8de99e81dc7e6cee0.tar.gz glibc-228589d285c9d65e361d52b8de99e81dc7e6cee0.tar.xz glibc-228589d285c9d65e361d52b8de99e81dc7e6cee0.zip |
Update.
1999-11-19 Ulrich Drepper <drepper@cygnus.com> * elf/dl-load.c (_dl_init_paths): Allocate correct number of entries for rtld_search_dirs[0]. Patch by David Mosberger <davidm@hpl.hp.com>.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | elf/dl-load.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 8c4cbd008e..10244c7145 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +1999-11-19 Ulrich Drepper <drepper@cygnus.com> + + * elf/dl-load.c (_dl_init_paths): Allocate correct number of + entries for rtld_search_dirs[0]. + Patch by David Mosberger <davidm@hpl.hp.com>. + 1999-11-18 Ulrich Drepper <drepper@cygnus.com> * locale/programs/ld-ctype.c: Don't predefine the character diff --git a/elf/dl-load.c b/elf/dl-load.c index 2d5478621b..cf015a2d3d 100644 --- a/elf/dl-load.c +++ b/elf/dl-load.c @@ -542,7 +542,7 @@ _dl_init_paths (const char *llp) / sizeof (struct r_search_path_elem)); rtld_search_dirs[0] = (struct r_search_path_elem *) - malloc ((sizeof (system_dirs) / sizeof (system_dirs[0]) - 1) + malloc ((sizeof (system_dirs) / sizeof (system_dirs[0])) * round_size * sizeof (struct r_search_path_elem)); if (rtld_search_dirs[0] == NULL) _dl_signal_error (ENOMEM, NULL, "cannot create cache for search path"); |