Hi, * TAKAHASHI Tamotsu wrote:
BTW, Changelog tells that 0eacf5297484 was to "prevent crashes if MB_LEN_MAX<6", but utf8.c is enabled only "#ifndef HAVE_WC_FUNCS", which means MB_LEN_MAX==16 (see mutt.h). So I'm afraid the change changed nothing.
Basically yes. But letting that function writing to a buffer know the buffer size may prevent crashes in case of programming errors.