From d07ce169a8baef7f4eb68fa4b618012f878bec3d Mon Sep 17 00:00:00 2001 From: Julian Smart Date: Fri, 27 Dec 2002 14:25:59 +0000 Subject: [PATCH] Fixed bug [ 657949 ] Segmentation fault in ~wxFileHistory git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/common/docview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/docview.cpp b/src/common/docview.cpp index c001cac..b0e10bd 100644 --- a/src/common/docview.cpp +++ b/src/common/docview.cpp @@ -2085,7 +2085,7 @@ void wxFileHistory::Load(wxConfigBase& config) wxString buf; buf.Printf(wxT("file%d"), m_fileHistoryN+1); wxString historyFile; - while ((m_fileHistoryN <= m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) + while ((m_fileHistoryN < m_fileMaxFiles) && config.Read(buf, &historyFile) && (historyFile != wxT(""))) { m_fileHistory[m_fileHistoryN] = copystring((const wxChar*) historyFile); m_fileHistoryN ++; -- 2.7.4