Append the correct number of null bytes to the end of recoded strings
authorJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Oct 2015 10:08:46 +0000 (12:08 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Tue, 20 Oct 2015 10:10:18 +0000 (12:10 +0200)
Previously the recode_string et al functions assumed that the correct way to
terminate a string was to append a single \0.  With encodings such as UTF-16
however, two \0 bytes are necessary and four with UTF-32.  This change fixes
the problem.


No differences found