summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2007-08-27 12:26:12 +0000
committerOlivier Blin <oblin@mandriva.com>2007-08-27 12:26:12 +0000
commit5302132f01fabaa70c2e4489a318e8acf8267c8c (patch)
tree7e1d875beb2ee4998286f4d70ae7a94e5909a785
parent0857505da71223caee9f679e2b60a0a28a3e7b9c (diff)
downloaddrakx-5302132f01fabaa70c2e4489a318e8acf8267c8c.tar
drakx-5302132f01fabaa70c2e4489a318e8acf8267c8c.tar.gz
drakx-5302132f01fabaa70c2e4489a318e8acf8267c8c.tar.bz2
drakx-5302132f01fabaa70c2e4489a318e8acf8267c8c.tar.xz
drakx-5302132f01fabaa70c2e4489a318e8acf8267c8c.zip
fix allocated size for modules list (oops)
-rw-r--r--mdk-stage1/modules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdk-stage1/modules.c b/mdk-stage1/modules.c
index 66eb5ef0b..5130401ee 100644
--- a/mdk-stage1/modules.c
+++ b/mdk-stage1/modules.c
@@ -354,8 +354,8 @@ enum return_type ask_insmod(enum driver_type type)
enum return_type results;
char * choice;
char ** dlist = list_directory("/modules");
- char ** modules = malloc(sizeof(char *) * string_array_length(dlist) + 1);
- char ** descrs = malloc(sizeof(char *) * string_array_length(dlist) + 1);
+ char ** modules = malloc(sizeof(char *) * (string_array_length(dlist) + 1));
+ char ** descrs = malloc(sizeof(char *) * (string_array_length(dlist) + 1));
char ** p_dlist = dlist;
char ** p_modules = modules;
char ** p_descrs = descrs;