On Fri, Apr 10, 2026 at 10:28:54PM +0200, Adam W. wrote:
It can be reproduced with:
tin -g news.chmurka.net -L slrn10sdakm.1ro9b.jaros@falcon.lasek.waw.pl
after recompiling _without_ MULTIBYTE_ABLE (that's why the manual states that mail-bugreport from inside tin should be used as that will include (some of) the relevant defines) if could reproduce it. the following should help (diff from the current 2.6.6er branch, but it should apply with a small offset to 2.6.5) === modified file 'src/misc.c' --- old/src/misc.c 2026-04-09 04:45:44 +0000 +++ new/src/misc.c 2026-04-11 10:41:45 +0000 @@ -2780,8 +2780,8 @@ } while (inbytesleft > 0); *outbuf = '\0'; - if (*max_line_len < strlen(obuf)) { - *max_line_len = strlen(obuf); + if (*max_line_len <= strlen(obuf) +1 ) { + *max_line_len = strlen(obuf) + 1; *line = my_realloc(*line, *max_line_len + 1); } strcpy(*line, obuf);