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:
@@ -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
|
||||
|
Reference in New Issue
Block a user