swap all characters instead of just the last one in a loop in wxMBConv_iconv::ToWChar()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-05-31 01:23:36 +00:00
parent 95f82f4ce3
commit 467a2982d2

View File

@@ -2115,7 +2115,7 @@ wxMBConv_iconv::ToWChar(wchar_t *dst, size_t dstLen,
{
// convert to native endianness
for ( unsigned i = 0; i < res; i++ )
dst[dstLen] = WC_BSWAP(dst[i]);
dst[i] = WC_BSWAP(dst[i]);
}
// NUL-terminate the string if there is any space left