diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-10-27 23:16:42 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-10-27 23:16:42 +0000 |
commit | fc7c199829d5bc724d34850cc04fba6ea490168f (patch) | |
tree | e6d25af85f0bf6a8c8598a84a50a27134fb794ee | |
parent | 4467df385fe68a1873e916e028f27632caea0035 (diff) | |
download | fetchmail-fc7c199829d5bc724d34850cc04fba6ea490168f.tar.gz fetchmail-fc7c199829d5bc724d34850cc04fba6ea490168f.tar.bz2 fetchmail-fc7c199829d5bc724d34850cc04fba6ea490168f.zip |
Fix one rewwrite bug.
svn path=/trunk/; revision=2141
-rw-r--r-- | rfc822.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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)) |