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
This commit is contained in:
Vadim Zeitlin
2006-04-06 12:43:38 +00:00
parent faa112c4ca
commit 9088c87bd0

View File

@@ -2760,7 +2760,7 @@ public:
{ {
OSStatus status = noErr ; OSStatus status = noErr ;
ByteCount byteOutLen ; ByteCount byteOutLen ;
ByteCount byteInLen = strlen(psz) ; ByteCount byteInLen = strlen(psz) + 1;
wchar_t *tbuf = NULL ; wchar_t *tbuf = NULL ;
UniChar* ubuf = NULL ; UniChar* ubuf = NULL ;
size_t res = 0 ; size_t res = 0 ;