aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1997-09-10 08:34:01 +0000
committerEric S. Raymond <esr@thyrsus.com>1997-09-10 08:34:01 +0000
commit92aafe12f8d116284a5431aa49280d5174c5936a (patch)
treede997011c289d3706fb9cc8d8c57873c592584ed /rfc822.c
parent67ac0ff0b31808b4b32c313fc80065c040b2a4de (diff)
downloadfetchmail-92aafe12f8d116284a5431aa49280d5174c5936a.tar.gz
fetchmail-92aafe12f8d116284a5431aa49280d5174c5936a.tar.bz2
fetchmail-92aafe12f8d116284a5431aa49280d5174c5936a.zip
Fix nasty single-char-adddress bug in multidrop mode.
svn path=/trunk/; revision=1327
Diffstat (limited to 'rfc822.c')
-rw-r--r--rfc822.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/rfc822.c b/rfc822.c
index 6539977d..b6103c8c 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -164,9 +164,11 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */
{
state = ENDIT_ALL;
if (tp > address)
+ {
while (isspace(*--tp))
continue;
- *++tp = '\0';
+ *++tp = '\0';
+ }
return(tp > address ? (tp = address) : (char *)NULL);
}
else if (*hp == '\\') /* handle RFC822 escaping */