diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2000-02-17 05:08:29 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2000-02-17 05:08:29 +0000 |
commit | c5cfa5bee8bb00850ef37062e68e542b02a87d6b (patch) | |
tree | f5f3d8e15a8a0ff8ff3a2a4e900a9a6aa852d4b4 /rfc822.c | |
parent | ed0683d77478e73226e4e0535a13c8eacfff9b88 (diff) | |
download | fetchmail-c5cfa5bee8bb00850ef37062e68e542b02a87d6b.tar.gz fetchmail-c5cfa5bee8bb00850ef37062e68e542b02a87d6b.tar.bz2 fetchmail-c5cfa5bee8bb00850ef37062e68e542b02a87d6b.zip |
Fix the length check.
svn path=/trunk/; revision=2756
Diffstat (limited to 'rfc822.c')
-rw-r--r-- | rfc822.c | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -33,16 +33,16 @@ const char *host; /* server hostname */ int addresscount = 1; #endif /* TESTMAIN */ - if (strncasecmp("From:", buf, 6) - && strncasecmp("To:", buf, 4) - && strncasecmp("Reply-To:", buf, 10) - && strncasecmp("Return-Path:", buf, 13) - && strncasecmp("Cc:", buf, 4) - && strncasecmp("Bcc:", buf, 5) - && strncasecmp("Resent-From:", buf, 13) - && strncasecmp("Resent-To:", buf, 11) - && strncasecmp("Resent-Cc:", buf, 11) - && strncasecmp("Resent-Bcc:", buf, 12) + if (strncasecmp("From:", buf, 5) + && strncasecmp("To:", buf, 3) + && strncasecmp("Reply-To:", buf, 9) + && strncasecmp("Return-Path:", buf, 12) + && strncasecmp("Cc:", buf, 3) + && strncasecmp("Bcc:", buf, 4) + && strncasecmp("Resent-From:", buf, 12) + && strncasecmp("Resent-To:", buf, 10) + && strncasecmp("Resent-Cc:", buf, 10) + && strncasecmp("Resent-Bcc:", buf, 11) && strncasecmp("Apparently-From:", buf, 16) && strncasecmp("Apparently-To:", buf, 14) && strncasecmp("Sender:", buf, 7) |