data-out: Make each converter responsible for storing null terminator.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 19 Feb 2011 06:30:00 +0000 (22:30 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Feb 2011 00:57:02 +0000 (16:57 -0800)
commit6bf6119d76b761cbbca0ca9e5b680f419eaf937b
tree28b264ca30040549f72340dedb85fae85523ff5a
parent2b0538e3901bfc1301729ab5b84e4d3e05ee4ccc
data-out: Make each converter responsible for storing null terminator.

Until now, every converter has produced output that is exactly as many
bytes long as the format's width.  In upcoming patches this will change,
because in UTF-8 a character that occupies a single display column can
require multiple bytes.  In preparation, this commit requires the
individual converters to write out their own null byte, giving a bit
more flexibility regarding length.
src/data/data-out.c