Pass length including the null-terminator to cWC2MB
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48579 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -407,7 +407,7 @@ const wxCharBuffer wxString::mb_str(const wxMBConv& conv) const
|
||||
if ( !wcLen )
|
||||
return wxCharBuffer("");
|
||||
|
||||
return conv.cWC2MB(wcBuf, wcLen, NULL);
|
||||
return conv.cWC2MB(wcBuf, wcLen+1, NULL);
|
||||
}
|
||||
|
||||
#else // ANSI
|
||||
|
||||
Reference in New Issue
Block a user