From: Vadim Zeitlin Date: Thu, 6 Apr 2006 12:43:38 +0000 (+0000) Subject: leave enough space for the trailing NUL when converting UTF-16 to UTF-32 in Mac conve... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/9088c87bd048690b7fef2e82cbae929c5857740e leave enough space for the trailing NUL when converting UTF-16 to UTF-32 in Mac conversion git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 412dcbe2ce..3f00282a39 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -2760,7 +2760,7 @@ public: { OSStatus status = noErr ; ByteCount byteOutLen ; - ByteCount byteInLen = strlen(psz) ; + ByteCount byteInLen = strlen(psz) + 1; wchar_t *tbuf = NULL ; UniChar* ubuf = NULL ; size_t res = 0 ;