summaryrefslogtreecommitdiff
path: root/textscreen/txt_utf8.h
diff options
context:
space:
mode:
authorSimon Howard2014-04-01 22:06:09 -0400
committerSimon Howard2014-04-01 22:06:09 -0400
commitc30f4a2f65172a0d358e4c85c7d3270af13b829b (patch)
tree58b34414f340643c7a8ebca2641ff306889c6abd /textscreen/txt_utf8.h
parent007615bc247f51b8418cbdd62c2c8b8c74a7ee08 (diff)
downloadchocolate-doom-c30f4a2f65172a0d358e4c85c7d3270af13b829b.tar.gz
chocolate-doom-c30f4a2f65172a0d358e4c85c7d3270af13b829b.tar.bz2
chocolate-doom-c30f4a2f65172a0d358e4c85c7d3270af13b829b.zip
misc: Fix safe vsnprintf() function.
An off-by-one error in the function caused the strings to be truncated one character too early. Change the return value check so that negative values are also interpreted as indicating truncation; this is the behavior of the Win32 API.
Diffstat (limited to 'textscreen/txt_utf8.h')
0 files changed, 0 insertions, 0 deletions