]> git.saurik.com Git - wxWidgets.git/commitdiff
Missing dereference caused wrong wxString ctor to be used, leading to
authorJulian Smart <julian@anthemion.co.uk>
Thu, 8 Jun 2006 08:09:27 +0000 (08:09 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Thu, 8 Jun 2006 08:09:27 +0000 (08:09 +0000)
memory errors

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39628 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/xml/xml.cpp

index 4c6dcdd7711fbcfe8d04e0db5a3311b8e9c521b7..25ffc91ea9beb868186249494822ebb79cb81eaa 100644 (file)
@@ -385,7 +385,7 @@ static wxString CharToString(wxMBConv *conv,
         const wxWCharBuffer wbuf(
             wxConvUTF8.cMB2WC(s, len == wxSTRING_MAXLEN ? wxNO_LEN : len, NULL));
 
-        return wxString(wbuf, conv);
+        return wxString(wbuf, *conv);
     }
     else // already in UTF-8, no conversion needed
     {