]> Pileus Git - ~andy/fetchmail/commitdiff
Fix nasty single-char-adddress bug in multidrop mode.
authorEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 1997 08:34:01 +0000 (08:34 -0000)
committerEric S. Raymond <esr@thyrsus.com>
Wed, 10 Sep 1997 08:34:01 +0000 (08:34 -0000)
svn path=/trunk/; revision=1327

rfc822.c

index 6539977dc987eb9ead3f5d817f3150828e7e63e9..b6103c8c77659defe45f070f9f07ba318058470d 100644 (file)
--- 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 */