sendmail: fix a mistake in previous commit
authorDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Nov 2011 12:54:50 +0000 (13:54 +0100)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sat, 19 Nov 2011 12:54:50 +0000 (13:54 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
mailutils/sendmail.c

index f96ca329106657a96295844f0f339373f4f2db59..aa381c60fe8b58b82bc3d64434f714fa3098847b 100644 (file)
@@ -293,7 +293,7 @@ int sendmail_main(int argc UNUSED_PARAM, char **argv)
                                continue; // N.B. Bcc: vanishes from headers!
                        }
                }
-               if (strchr(s, ':') || (list && isspace(s))) {
+               if (strchr(s, ':') || (list && isspace(s[0]))) {
                        // other headers go verbatim
                        // N.B. RFC2822 2.2.3 "Long Header Fields" allows for headers to occupy several lines.
                        // Continuation is denoted by prefixing additional lines with whitespace(s).