From 228589d285c9d65e361d52b8de99e81dc7e6cee0 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 20 Nov 1999 02:25:52 +0000 Subject: Update. 1999-11-19 Ulrich Drepper * elf/dl-load.c (_dl_init_paths): Allocate correct number of entries for rtld_search_dirs[0]. Patch by David Mosberger . --- elf/dl-load.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'elf') diff --git a/elf/dl-load.c b/elf/dl-load.c index 2d54786..cf015a2 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"); -- cgit v1.1