aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-25 20:57:12 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-25 20:57:12 +0000
commitc5b2532ace17da3e10429e80c1b5574e8b91f2e1 (patch)
treec02e702b6ad88469b7be05b286fb1a21f19564c3 /driver.c
parentf61224f2f7195fc5795fd6f16c97e607fb976cc0 (diff)
downloadfetchmail-c5b2532ace17da3e10429e80c1b5574e8b91f2e1.tar.gz
fetchmail-c5b2532ace17da3e10429e80c1b5574e8b91f2e1.tar.bz2
fetchmail-c5b2532ace17da3e10429e80c1b5574e8b91f2e1.zip
Fix delivery to MDAs.
svn path=/trunk/; revision=384
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c4
1 files changed, 2 insertions, 2 deletions
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;