aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1996-10-30 15:01:04 +0000
committerEric S. Raymond <esr@thyrsus.com>1996-10-30 15:01:04 +0000
commit8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72 (patch)
tree3dc4eef85d413ddafccf26470ad11a0bef40bc38 /driver.c
parentd8fbd8802153a1739ff0442d151deedd3b2670c9 (diff)
downloadfetchmail-8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72.tar.gz
fetchmail-8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72.tar.bz2
fetchmail-8a6f9f2bd1f2c2a11f28fcb7a5e0642687863e72.zip
Fix fatal alloca bug.
svn path=/trunk/; revision=436
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c2
1 files changed, 1 insertions, 1 deletions
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)