AmendHub

Download:

jcs

/

subtext

/

amendments

/

540

mail: FTN body length is size - 1

This was including an additional null byte at the end of messages
which some FTN packet parsers were (rightly) complaining about.

jcs made amendment 540 about 1 year ago
--- mail.c Wed Sep 20 08:41:06 2023 +++ mail.c Tue Nov 14 11:29:40 2023 @@ -473,7 +473,7 @@ mail_compose_start: strlcpy(ftnmsg.subject, msg.subject, sizeof(ftnmsg.subject)); ftnmsg.body = msg.body; - ftnmsg.body_len = msg.body_size; + ftnmsg.body_len = msg.body_size - 1; if (ftn_reply_msgid != NULL && ftn_reply_msgid[0]) strlcpy(ftnmsg.reply, ftn_reply_msgid, sizeof(ftnmsg.reply));