From 87668fd0eae191389906172fca8ac729887adddc Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Tue, 20 Oct 1998 05:55:03 +0000 Subject: Eliminate a magic number. svn path=/trunk/; revision=2118 --- driver.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'driver.c') 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) -- cgit v1.2.3