summaryrefslogtreecommitdiff
path: root/Source/kwsys/EncodingC.c
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-06-28 13:32:23 -0400
committerBrad King <brad.king@kitware.com>2021-06-28 13:32:23 -0400
commit7e9a32947bab0ee84a1a869c49bbe0d2459a8c3c (patch)
tree5fb3349c2204e9458a465460b71fa5143cfcd94f /Source/kwsys/EncodingC.c
parent20bed8d2acd8548a13df33cbdef05c95f2783b2c (diff)
parentbf4ae1c2b242e6a37034fac7efd86b0786130bfb (diff)
downloadcmake-7e9a32947bab0ee84a1a869c49bbe0d2459a8c3c.tar.gz
Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream * upstream-KWSys: KWSys 2021-06-28 (0648cb1a)
Diffstat (limited to 'Source/kwsys/EncodingC.c')
-rw-r--r--Source/kwsys/EncodingC.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/kwsys/EncodingC.c b/Source/kwsys/EncodingC.c
index e12236afe5..13127f1acc 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) {