From 17c06d721eadd14637f4916de6743048773c6236 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Mon, 8 Nov 2004 22:09:07 +0000 Subject: 2004-11-08 Jeremy Katz * loader2/modules.c (lateModuleSort): Fix stack corruption. --- loader2/modules.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'loader2/modules.c') diff --git a/loader2/modules.c b/loader2/modules.c index 78cdbffb4..273f306f2 100644 --- a/loader2/modules.c +++ b/loader2/modules.c @@ -379,7 +379,7 @@ static char ** lateModuleSort(char **allmods, int num) { "lpfc", "ibmvscsic", NULL }; char ** lateMods; - modList = alloca(sizeof(*modList) * (num + 1)); + modList = malloc(sizeof(*modList) * (num + 1)); lateMods = alloca(sizeof(*lateMods) * 10); lateMods = memset(lateMods, 0, 10); -- cgit