]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
check that string passed to FromUTF8() is valid even in release build, this is safer...
[wxWidgets.git] / src / xml / xml.cpp
index 4941e6104b0dbb349e1a21fb49eafb61e6d9a40b..278adff98fe598f0f63a3234306ca7d0c8869425 100644 (file)
@@ -485,7 +485,7 @@ static wxString CharToString(wxMBConv *conv,
 #endif // !wxUSE_UNICODE
 
     wxUnusedVar(conv);
-    return wxString::FromUTF8(s, len);
+    return wxString::FromUTF8Unchecked(s, len);
 }
 
 // returns true if the given string contains only whitespaces