RCS file: /pack/cvsroots/wxwindows/wxWindows/src/common/string.cpp,v retrieving revision 1.186 diff -u -r1.186 string.cpp --- string.cpp 2003/07/15 13:46:39 1.186 +++ string.cpp 2003/07/17 15:53:54 @@ -263,8 +263,8 @@ } else { - // MB2WC wants the buffer size, not the string length hence +1 - nLen = conv.MB2WC(m_pchData, psz, nLen + 1); + // MB2WC wants the buffer size, not the string length; we'll append the zero ourselves + nLen = conv.MB2WC(m_pchData, psz, nLen); if ( nLen != (size_t)-1 )