From 95f82f4ce3ad30120b6831a3df057a5f486999ea Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 31 May 2008 01:22:16 +0000 Subject: [PATCH] don't return success when converting incomplete UTF-7 sequences git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53867 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/strconv.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index 7f2c37a398..9815e5b190 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -564,14 +564,13 @@ size_t wxMBConvUTF7::MB2WC(wchar_t *buf, const char *psz, size_t n) const if (buf) *buf++ |= c; len ++; + ok = true; } else { if (buf) *buf = (wchar_t)(c << 8); } - - ok = true; } } -- 2.45.2