Accept header lines of exactly 998 characters
authorVasilii Kolobkov <polezaivsani@ko5v.net>
Wed, 11 Jul 2018 11:21:16 +0000 (13:21 +0200)
committermarkus schnalke <meillo@marmaro.de>
Sun, 15 Jul 2018 10:21:13 +0000 (12:21 +0200)
sbr/m_getfld2.c

index 956a556..954ed33 100644 (file)
@@ -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;
                        }