X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/0e2710a6b96921920560271253c8409da47b8129..73fe67bd60b57f95dc63809f7843ed2a15928436:/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 }