X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=rfc822.c;h=15b88f05ef476312af280de1d2ec7183ed4768db;hb=edb8384a00f108b385d0df7ddfa5bd671a36f946;hp=8fe209abc9fdb251439acc1967a58fc9b6897b24;hpb=a1e745c4da90c875ecbd433fcc81fe3bab2811e5;p=~andy%2Ffetchmail diff --git a/rfc822.c b/rfc822.c index 8fe209ab..15b88f05 100644 --- a/rfc822.c +++ b/rfc822.c @@ -19,6 +19,9 @@ is part of fetchmail and the Unix Cookbook, and are released under the MIT license. Compile with -DMAIN to build the demonstrator. ******************************************************************************/ + +#include "config.h" + #include #include #include @@ -436,6 +439,8 @@ int main(int argc, char *argv[]) break; } + longbuf[0] = '\0'; + while (fgets(buf, sizeof(buf)-1, stdin)) { if (buf[0] == ' ' || buf[0] == '\t')