From: Robert Roebling Date: Thu, 8 Aug 2002 21:40:30 +0000 (+0000) Subject: Hopefully corrected conversion buffer size. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/d1efca1a2ac2dd20d47d217ce2be1bcc506377e0?ds=inline Hopefully corrected conversion buffer size. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/common/strconv.cpp b/src/common/strconv.cpp index bdb210d538..fb2d4e0023 100644 --- a/src/common/strconv.cpp +++ b/src/common/strconv.cpp @@ -188,12 +188,12 @@ static size_t decode_utf16(const wchar_t* input, wxUint32& output) size_t wxMBConv::MB2WC(wchar_t *buf, const char *psz, size_t n) const { - return wxMB2WC(buf, psz, n); + return wxMB2WC(buf, psz, n)+1; } size_t wxMBConv::WC2MB(char *buf, const wchar_t *psz, size_t n) const { - return wxWC2MB(buf, psz, n); + return wxWC2MB(buf, psz, n)+1; } const wxWCharBuffer wxMBConv::cMB2WC(const char *psz) const