AmendHub

Download:

jcs

/

subtext

/

amendments

/

215

mail: Don't allocate such a huge message body size


jcs made amendment 215 over 2 years ago
--- mail.c Tue Jul 12 22:45:01 2022 +++ mail.c Sun Jul 17 20:01:17 2022 @@ -321,7 +321,7 @@ mail_compose_start: "{{B}}Message (^D when finished):{{/B}}\r\n"); session_flush(s); - tmp = session_field_input(s, USHRT_MAX, s->terminal_columns - 1, + tmp = session_field_input(s, 2048, s->terminal_columns - 1, msg.body, true, 0); if (msg.body != NULL) free(msg.body);