diff options
Diffstat (limited to 'Source/kwsys/EncodingC.c')
-rw-r--r-- | Source/kwsys/EncodingC.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/EncodingC.c b/Source/kwsys/EncodingC.c index e12236a..13127f1 100644 --- a/Source/kwsys/EncodingC.c +++ b/Source/kwsys/EncodingC.c @@ -60,7 +60,7 @@ size_t kwsysEncoding_wcstombs(char* dest, const wchar_t* str, size_t n) char* kwsysEncoding_DupToNarrow(const wchar_t* str) { char* ret = NULL; - size_t length = kwsysEncoding_wcstombs(0, str, 0) + 1; + size_t length = kwsysEncoding_wcstombs(NULL, str, 0) + 1; if (length > 0) { ret = (char*)malloc(length); if (ret) { |