From 92aafe12f8d116284a5431aa49280d5174c5936a Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 10 Sep 1997 08:34:01 +0000 Subject: Fix nasty single-char-adddress bug in multidrop mode. svn path=/trunk/; revision=1327 --- rfc822.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'rfc822.c') 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 */ -- cgit v1.2.3