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);
if (hdr->flags & HTRY) {
addr_end->m_next = recipients;
recipients = addr_start.m_next;
- recipientsc += i;
+ recipientsc += addrc;
}
}