From: Vadim Zeitlin Date: Fri, 31 Mar 2006 17:34:48 +0000 (+0000) Subject: pass proper output buffer size in round trip conversion success check in wxMBConv_win... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2f96d9bb8d486284412dfed54dc64c8fdb63b3e6?hp=a65ca3e600a5147a1e75dec9b0d7357770faf155 pass proper output buffer size in round trip conversion success check in wxMBConv_win32, otherwise conversions from UTF-7 always failed for example git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38473 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 7b0e78a69d..cc851b8ff3 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -1702,7 +1702,7 @@ public: buf, -1, mbBuf.data(), - n, + n + 1, // size in bytes, not length NULL, NULL ) == 0 ||