From 7351db919a9dab89c951406bee859b5f3bb53f7a Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 30 May 2005 18:50:26 +0000 Subject: [PATCH] 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 --- src/common/fileconf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 639e9b089e..e26936b7a5 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -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(); -- 2.45.2