From 2588ee861f8d148c2dfb5aa681650ecb7d4e5408 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 31 May 2008 01:54:21 +0000 Subject: [PATCH] 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 --- src/common/strconv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index bb50f19d4b..ded5f2b6a5 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -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; -- 2.45.2