The max width for binary output is 16, for P or PK format, plus there
needs to be room for a null terminator, for a total width of 17 bytes.
The buffer here was undersized at only 16 bytes. This commit fixes the
problem.
Thanks to Youngseok Choi for reporting the bug.
}
else if (fmt_get_category (format.type) == FMT_CAT_BINARY)
{
- char tmp[16];
+ char tmp[17];
assert (format.w + 1 <= sizeof tmp);
converters[format.type] (input, format, settings, tmp);