From: Eric S. Raymond Date: Tue, 27 Oct 1998 23:16:42 +0000 (-0000) Subject: Fix one rewwrite bug. X-Git-Url: http://pileus.org/git/?a=commitdiff_plain;h=fc7c199829d5bc724d34850cc04fba6ea490168f;p=~andy%2Ffetchmail Fix one rewwrite bug. svn path=/trunk/; revision=2141 --- diff --git a/rfc822.c b/rfc822.c index 5c989cd9..5e4f24d6 100644 --- a/rfc822.c +++ b/rfc822.c @@ -29,7 +29,9 @@ const char *host; /* server hostname */ { char *from, *cp, last_nws = '\0', *parens_from = NULL; int parendepth, state, has_bare_name_part, has_host_part; +#ifndef TESTMAIN int addresscount = 1; +#endif /* TESTMAIN */ if (strncasecmp("From: ", buf, 6) && strncasecmp("To: ", buf, 4) @@ -52,7 +54,7 @@ const char *host; /* server hostname */ #ifndef TESTMAIN if (outlevel >= O_DEBUG) error_build(0, 0, "About to rewrite %s", buf); -#else + /* make room to hack the address; buf must be malloced */ for (cp = buf; *cp; cp++) if (*cp == ',' || isspace(*cp))