data-out: Make binary output buffer big enough for a null terminator.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Mar 2023 19:34:39 +0000 (12:34 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 18 Mar 2023 19:34:39 +0000 (12:34 -0700)
commit9d4b6c71c0cd089bb94296fab50a703735b89ccd
tree4353587c212db639b5544835af8925970491aadb
parentc67cea6fc7f9b928ea297e8e784a0306c7f287b3
data-out: Make binary output buffer big enough for a null terminator.

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.
src/data/data-out.c