From 8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 30 Oct 1996 15:01:04 +0000 Subject: Fix fatal alloca bug. svn path=/trunk/; revision=436 --- driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index b0f0b5f6..89137ca9 100644 --- a/driver.c +++ b/driver.c @@ -606,7 +606,7 @@ struct query *ctl; /* query control record */ */ for (idp = xmit_names; idp; idp = idp->next) nlocals++; - sp = sargv = (char **)alloca(ctl->mda_argcount+nlocals+2); + sp = sargv = (char **)alloca(sizeof(char **) * ctl->mda_argcount+nlocals+2); for (i = 0; i < ctl->mda_argcount; i++) *sp++ = ctl->mda_argv[i]; for (idp = xmit_names; idp; idp = idp->next) -- cgit v1.2.3