aboutsummaryrefslogtreecommitdiffstats
path: root/driver.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-10-20 05:55:03 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-10-20 05:55:03 +0000
commit87668fd0eae191389906172fca8ac729887adddc (patch)
treed7b949e46f6ee0c077a7ae6c0d7b04cccc14fdb6 /driver.c
parent08350357ba9727ef6b006c51ed0502044d581c65 (diff)
downloadfetchmail-87668fd0eae191389906172fca8ac729887adddc.tar.gz
fetchmail-87668fd0eae191389906172fca8ac729887adddc.tar.bz2
fetchmail-87668fd0eae191389906172fca8ac729887adddc.zip
Eliminate a magic number.
svn path=/trunk/; revision=2118
Diffstat (limited to 'driver.c')
-rw-r--r--driver.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/driver.c b/driver.c
index 25e2c819..60b77720 100644
--- a/driver.c
+++ b/driver.c
@@ -1242,7 +1242,8 @@ static void send_warning(struct query *ctl)
FILE *tmpfile = NULL;
struct idlist *head=NULL, *current=NULL;
int max_warning_poll_count, good, bad;
- char buf[100];
+#define OVERHD "Subject: Fetchmail WARNING.\r\n\r\nThe following oversized messages remain on the mail server:\n\r\n"
+ char buf[sizeof(OVERHD) + 2];
head = ctl->skipped;
if (!head)
@@ -1260,8 +1261,8 @@ static void send_warning(struct query *ctl)
* but it's not a disaster, either, since the skipped mail will not
* be deleted.
*
- * We give a null address list here because we actually *want*
- * this message to go to run.postmaster. The zero length means
+ * We give a null address list as arg 3 because we actually *want*
+ * this message to go to run.postmaster. The zero length arg 4 means
* we won't pass a SIZE option to ESMTP; the message length would
* be more trouble than it's worth to compute.
*/
@@ -1269,7 +1270,6 @@ static void send_warning(struct query *ctl)
return;
/* stuffline() requires its input to be writeable for CR stripping */
-#define OVERHD "Subject: Fetchmail WARNING.\r\n\r\nThe following oversized messages remain on the mail server:\n\r\n"
strcpy(buf, OVERHD);
stuffline(ctl, buf);
@@ -1298,6 +1298,7 @@ static void send_warning(struct query *ctl)
}
close_sink(ctl, TRUE);
+#undef OVERHD
}
int do_protocol(ctl, proto)