From c5b2532ace17da3e10429e80c1b5574e8b91f2e1 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Fri, 25 Oct 1996 20:57:12 +0000 Subject: Fix delivery to MDAs. svn path=/trunk/; revision=384 --- driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'driver.c') diff --git a/driver.c b/driver.c index 43a1e161..7bd77e6b 100644 --- a/driver.c +++ b/driver.c @@ -547,8 +547,8 @@ struct hostrec *queryctl; /* query control record */ */ for (idp = xmit_names; idp; idp = idp->next) nlocals++; - sp = sargv = (char **)alloca(queryctl->mda_argcount + nlocals); - for (i = 0; i < queryctl->mda_argcount; i++) + sp = sargv = (char **)alloca(queryctl->mda_argcount+nlocals+2); + for (i = 0; i <= queryctl->mda_argcount; i++) *sp++ = queryctl->mda_argv[i]; for (idp = xmit_names; idp; idp = idp->next) *sp++ = idp->id; -- cgit v1.2.3