]> git.saurik.com Git - wxWidgets.git/commitdiff
Hopefully corrected conversion buffer size.
authorRobert Roebling <robert@roebling.de>
Thu, 8 Aug 2002 21:40:30 +0000 (21:40 +0000)
committerRobert Roebling <robert@roebling.de>
Thu, 8 Aug 2002 21:40:30 +0000 (21:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/strconv.cpp

index bdb210d538f727f131c99d5f2dcaf9805b027686..fb2d4e0023ec180a5d83cfc230f7ad8a607501f0 100644 (file)
@@ -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