aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.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 /fetchmail.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 'fetchmail.c')
-rw-r--r--fetchmail.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/fetchmail.c b/fetchmail.c
index 2558f0b9..4d55bf91 100644
--- a/fetchmail.c
+++ b/fetchmail.c
@@ -768,6 +768,17 @@ char *argv[];
int pipefd [2];
int childpid;
+ if (outlevel == O_VERBOSE)
+ {
+ char **cp;
+
+ printf("fetchmail: about to deliver via MDA %s, args:",
+ visbuf(argv[0]));
+ for (cp = argv+1; *cp; cp++)
+ printf(" %s(%p)", visbuf(*cp), *cp);
+ putchar('\n');
+ }
+
if (pipe(pipefd) < 0) {
perror("fetchmail: openmailpipe: pipe");
return(-1);
@@ -806,9 +817,6 @@ int fd;
int err, status;
int childpid;
- if (outlevel == O_VERBOSE)
- fprintf(stderr, "about to close pipe %d\n", fd);
-
if ((err = close(fd)) != 0)
perror("fetchmail: closemailpipe: close failed");
@@ -826,9 +834,6 @@ int fd;
}
#endif
- if (outlevel == O_VERBOSE)
- fprintf(stderr, "closed pipe %d\n", fd);
-
return(err);
}