X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e2710a6b96921920560271253c8409da47b8129..da3f3e049a3bcd9db16d73dd83c007e12f6c95e1:/src/xml/xml.cpp diff --git a/src/xml/xml.cpp b/src/xml/xml.cpp index fc447594a5..80c76829fc 100644 --- a/src/xml/xml.cpp +++ b/src/xml/xml.cpp @@ -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 }