Blind fix for bug #1209944, wxFileConfig constructor corrupts the stack

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn 2005-05-30 18:50:26 +00:00
parent eb5e42b615
commit 7351db919a

View File

@ -495,7 +495,7 @@ wxFileConfig::wxFileConfig(wxInputStream &inStream, wxMBConv& conv)
char buf[1024];
do
{
inStream.Read(buf, WXSIZEOF(buf));
inStream.Read(buf, WXSIZEOF(buf)-1); // leave room for the NULL
const wxStreamError err = inStream.GetLastError();