AmendHub

Download:

jcs

/

subtext

/

amendments

/

484

fidopkt: Crank scratch buffer size in fidopkt_encode_message

Some fields we're copying from a reply might be bigger than 30

jcs made amendment 484 about 1 year ago
--- fidopkt.c Thu Apr 13 08:53:16 2023 +++ fidopkt.c Tue Apr 18 23:59:35 2023 @@ -512,7 +512,7 @@ size_t fidopkt_encode_message(struct fidopkt_message *msg, char **ret_buf, char *pkt_password, short tzoff) { - static char scratch[30]; + static char scratch[64]; struct tm *tm; char *buf; size_t len, off, buf_size, subject_len, n;