diff options
author | KWSys Robot <kwrobot@kitware.com> | 2013-12-19 14:39:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-12-19 15:44:24 (GMT) |
commit | f788d9a1b27efc9b463b1174a93e780bef00a5d9 (patch) | |
tree | ad8871c410d7cc02d04c19be76465db32aab8dca /EncodingC.c | |
parent | 704ab3d24827cfe5754a00028086f21503c2e08b (diff) | |
download | CMake-f788d9a1b27efc9b463b1174a93e780bef00a5d9.zip CMake-f788d9a1b27efc9b463b1174a93e780bef00a5d9.tar.gz CMake-f788d9a1b27efc9b463b1174a93e780bef00a5d9.tar.bz2 |
KWSys 2013-12-19 (88165c5e)
Extract upstream KWSys using the following shell commands.
$ git archive --prefix=upstream-kwsys/ 88165c5e | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' 1010d0e3..88165c5e
Clinton Stimpson (2):
ab6f8c36 FStream: Fix rdbuf() return and use use of FStream in SystemTools.
88165c5e Encoding: Fix bug in kwsysEncoding_DupToNarrow.
Rolf Eike Beer (2):
d2bcbe11 SystemInformation: extract CPU information on Linux/Sparc
b2fd7da5 ProcessUNIX: close /proc entry before starting recursion
Ådne Hovda (1):
a02a1ad2 SystemInformation: Fix compilation on HP-UX 11.11 hppa
Change-Id: I225e0517379d88612f18215b43c7d6a9daad6326
Diffstat (limited to 'EncodingC.c')
-rw-r--r-- | EncodingC.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/EncodingC.c b/EncodingC.c index a36eecc..cda78e2 100644 --- a/EncodingC.c +++ b/EncodingC.c @@ -68,7 +68,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); + size_t length = kwsysEncoding_wcstombs(0, str, 0) + 1; if(length > 0) { ret = malloc(length); |