From 4f230b2e91103abc77dcc41c46a59ba2041a2248 Mon Sep 17 00:00:00 2001 From: Vasilii Kolobkov Date: Wed, 11 Jul 2018 13:21:16 +0200 Subject: [PATCH] Accept header lines of exactly 998 characters --- sbr/m_getfld2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sbr/m_getfld2.c b/sbr/m_getfld2.c index 956a556..954ed33 100644 --- a/sbr/m_getfld2.c +++ b/sbr/m_getfld2.c @@ -62,7 +62,7 @@ m_getfld2(enum state s, struct field *f, FILE *msg) } } - if (nchars >= NAMESZ) { + if (nchars > NAMESZ) { ret = LENERR2; } @@ -103,7 +103,7 @@ m_getfld2(enum state s, struct field *f, FILE *msg) return IOERR2; } - if (nchars >= NAMESZ) { + if (nchars > NAMESZ) { ret = LENERR2; } -- 1.7.10.4