]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/fileconf.cpp
remove "item.cchTextMax=0" line from SetItem() as it doesn't seem to make any sense...
[wxWidgets.git] / src / common / fileconf.cpp
index 69df300ba2639319b675c1637f91a6edc3d05bba..e3b61cf806258d78fdef0c163f0b6a6e77a711b1 100644 (file)
@@ -471,7 +471,7 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, const wxMBConv& conv)
     }
 #else // !wxUSE_UNICODE
     // no need for conversion
-    cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData());
+    cbuf = wxCharBuffer::CreateNonOwned((char *)buf.GetData(), buf.GetDataLen());
 #endif // wxUSE_UNICODE/!wxUSE_UNICODE