Calculate length explicitly (for wxUSE_STL == 1).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mattia Barbon 2004-03-03 20:59:24 +00:00
parent 3c2544bb70
commit 088ab98499

View File

@ -370,7 +370,7 @@ inline static wxString CharToString(wxMBConv *conv,
return str; return str;
} }
else else
return wxString(s, len); return wxString(s, len != wxSTRING_MAXLEN ? len : strlen(s));
#endif #endif
} }