]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/strconv.cpp
Tweaked python image output slightly
[wxWidgets.git] / src / common / strconv.cpp
index f1d4c56ea2c2567c793fa0e3c7131101ad544b68..b4eaa65148a6ef9e862cbda69529d5a525aadf82 100644 (file)
@@ -661,6 +661,9 @@ size_t IC_CharSet::MB2WC(wchar_t *buf, const char *psz, size_t n)
             // convert to native endianness
             WC_BSWAP(buf /* _not_ bufPtr */, res)
         }
+        
+        // iconv doesn't seem to set the trailing 0
+        buf[res] = 0;
     }
     else
     {