]> git.saurik.com Git - wxWidgets.git/blobdiff - src/xml/xml.cpp
cleanup in toplevel activation, and switching to native carbon event notification...
[wxWidgets.git] / src / xml / xml.cpp
index fc447594a556607a3c16daacf53a216fa90fcb77..80c76829fceb212a123e9cbd1aeffd425d8a457b 100644 (file)
@@ -370,7 +370,7 @@ inline static wxString CharToString(wxMBConv *conv,
         return str;
     }
     else
-        return wxString(s, len);
+        return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
 #endif
 }