]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Sat, 20 Nov 1999 02:25:52 +0000 (02:25 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sat, 20 Nov 1999 02:25:52 +0000 (02:25 +0000)
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>.

ChangeLog
elf/dl-load.c

index 8c4cbd008eb9be5ed13b3a55c7290f2e6bf2433c..10244c7145d2757d5a201aee796769ae3cd9b756 100644 (file)
--- 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
index 2d5478621b8913e1e0ec98ad81e382bdf7e91d48..cf015a2d3d11962d6934ccf63c6c2faf2f437205 100644 (file)
@@ -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");