X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fspost.c;h=ea032d24a04f6f073da8a2d98ca5f78b57812cfe;hb=HEAD;hp=39d8ada53dfb99f8b35888ac62d290e53d7ed978;hpb=6e4f8128fe078a3e54f5c92d27c31acc7b8f9fd8;p=mmh diff --git a/uip/spost.c b/uip/spost.c index 39d8ada..ea032d2 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); @@ -458,7 +458,7 @@ putfmt(char *name, char *str, FILE *out) if (hdr->flags & HTRY) { addr_end->m_next = recipients; recipients = addr_start.m_next; - recipientsc += i; + recipientsc += addrc; } }