From cb98379a297424cf2573b2c81d676b64ade49141 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 3 Sep 1997 16:00:58 +0000 Subject: Al Youngwerth's fix for RFC822. svn path=/trunk/; revision=1280 --- rfc822.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rfc822.c b/rfc822.c index 0976c701..6539977d 100644 --- a/rfc822.c +++ b/rfc822.c @@ -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); } -- cgit v1.2.3