aboutsummaryrefslogtreecommitdiffstats
path: root/rfc822.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2000-02-17 05:08:29 +0000
committerEric S. Raymond <esr@thyrsus.com>2000-02-17 05:08:29 +0000
commitc5cfa5bee8bb00850ef37062e68e542b02a87d6b (patch)
treef5f3d8e15a8a0ff8ff3a2a4e900a9a6aa852d4b4 /rfc822.c
parented0683d77478e73226e4e0535a13c8eacfff9b88 (diff)
downloadfetchmail-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.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/rfc822.c b/rfc822.c
index 2de6de2a..1024bc8b 100644
--- a/rfc822.c
+++ b/rfc822.c
@@ -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)