X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fspost.c;h=39d8ada53dfb99f8b35888ac62d290e53d7ed978;hp=505b94ce951ed2759c9ee242a2704072ea009bdf;hb=refs%2Fheads%2Fmaster;hpb=4cda5cc76d32679825aee226dd407f0b87f3de00 diff --git a/uip/spost.c b/uip/spost.c index 505b94c..ea032d2 100644 --- a/uip/spost.c +++ b/uip/spost.c @@ -39,6 +39,7 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; /* flags for headers->flags */ #define HNOP 0x0000 /* just used to keep .set around */ @@ -244,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); @@ -457,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; } }