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:
Vadim Zeitlin
2008-05-31 01:54:21 +00:00
parent 1752fda65b
commit 2588ee861f

View File

@@ -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;