diff options
author | Stef Walter <stef@thewalter.net> | 2004-04-03 22:13:01 +0000 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2004-04-03 22:13:01 +0000 |
commit | bec23685136f78a24a78a6d8840d3865ffbccea9 (patch) | |
tree | 1453e0c5f87bb689a3df9c8e524d05d65bcca657 /src/unicode.c | |
parent | 3eca787a2b83ff8cf60d2be9e588d4a558b85a85 (diff) |
Unix porting.
Diffstat (limited to 'src/unicode.c')
-rw-r--r-- | src/unicode.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/unicode.c b/src/unicode.c index ea64574..f6197b6 100644 --- a/src/unicode.c +++ b/src/unicode.c @@ -57,7 +57,7 @@ char* unicode_transcode16to8(const wchar_t* src, size_t len) } } - ret[pos] = NULL; + ret[pos] = 0; return ret; } @@ -67,7 +67,7 @@ char* unicode_transcode16to8(const wchar_t* src, size_t len) * Since a semi predictable length of the resulting data is * known, the caller should allocate the memory for this conversion. */ -wchar_t* unicode_transcode8to16(const char* src, const wchar_t* out, size_t len) +wchar_t* unicode_transcode8to16(const char* src, wchar_t* out, size_t len) { /* Note: out should always be at least as long as src in chars */ @@ -133,7 +133,7 @@ wchar_t* unicode_transcode8to16(const char* src, const wchar_t* out, size_t len) } } - out[pos] = NULL; + out[pos] = 0; return out; } |