diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1997-09-03 16:00:58 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1997-09-03 16:00:58 +0000 |
commit | cb98379a297424cf2573b2c81d676b64ade49141 (patch) | |
tree | 24e1ffab3423c85b0441a0cda9ab8100892567e2 /rfc822.c | |
parent | f84776266d1d232ecf11f1cf57900a7abe000b54 (diff) | |
download | fetchmail-cb98379a297424cf2573b2c81d676b64ade49141.tar.gz fetchmail-cb98379a297424cf2573b2c81d676b64ade49141.tar.bz2 fetchmail-cb98379a297424cf2573b2c81d676b64ade49141.zip |
Al Youngwerth's fix for RFC822.
svn path=/trunk/; revision=1280
Diffstat (limited to 'rfc822.c')
-rw-r--r-- | rfc822.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -163,8 +163,9 @@ const char *hdr; /* header to be parsed, NUL to continue previous hdr */ else if (HEADER_END(hp)) { state = ENDIT_ALL; - while (isspace(*--tp)) - continue; + if (tp > address) + while (isspace(*--tp)) + continue; *++tp = '\0'; return(tp > address ? (tp = address) : (char *)NULL); } |