correct similar off by 1 bug to the one fixed by r53869 in wxMBConv_iconv::ToWChar() in FromWChar()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53871 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2166,7 +2166,7 @@ size_t wxMBConv_iconv::FromWChar(char *dst, size_t dstLen,
|
||||
#endif
|
||||
|
||||
if ( srcLen == wxNO_LEN )
|
||||
srcLen = wxWcslen(src);
|
||||
srcLen = wxWcslen(src) + 1;
|
||||
|
||||
size_t inbuflen = srcLen * SIZEOF_WCHAR_T;
|
||||
size_t outbuflen = dstLen;
|
||||
|
Reference in New Issue
Block a user