projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
7841b7d
)
Append the correct number of null bytes to the end of recoded strings
author
John Darrington
<john@darrington.wattle.id.au>
Tue, 20 Oct 2015 10:08:46 +0000
(12:08 +0200)
committer
John 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