]> git.saurik.com Git - wxWidgets.git/commitdiff
leave enough space for the trailing NUL when converting UTF-16 to UTF-32 in Mac conve...
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 12:43:38 +0000 (12:43 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 6 Apr 2006 12:43:38 +0000 (12:43 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index 412dcbe2ce5840ec752ac91a9b82b8739fae4890..3f00282a39f7840ac47003c47458e257b56b4e53 100644 (file)
@@ -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 ;