aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 */