]> git.saurik.com Git - wxWidgets.git/commitdiff
Calculate length explicitly (for wxUSE_STL == 1).
authorMattia Barbon <mbarbon@cpan.org>
Wed, 3 Mar 2004 20:59:24 +0000 (20:59 +0000)
committerMattia Barbon <mbarbon@cpan.org>
Wed, 3 Mar 2004 20:59:24 +0000 (20:59 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26065 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

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
 }