From d39fe43959fda0efb9ae681672ea8e476f1848e1 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Sat, 14 Jul 2018 13:41:09 +0200 Subject: [PATCH] spost accept body lines with 998 characters --- uip/spost.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/spost.c b/uip/spost.c index 39d8ada..fd0cbcc 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -245,7 +245,7 @@ main(int argc, char **argv) finish_headers(out); fprintf(out, "\n%s", f.value); while ((state = m_getfld2(state, &f, in)) == BODY2) { - if (f.valuelen >= NAMESZ) { + if (f.valuelen > NAMESZ+1 || (!f.crlf && f.valuelen > NAMESZ)) { adios(EX_DATAERR, NULL, "Body contains a to long line"); } fputs(f.value, out); -- 1.7.10.4