]> git.saurik.com Git - wxWidgets.git/commitdiff
Fixed bug [ 657949 ] Segmentation fault in ~wxFileHistory
authorJulian Smart <julian@anthemion.co.uk>
Fri, 27 Dec 2002 14:25:59 +0000 (14:25 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Fri, 27 Dec 2002 14:25:59 +0000 (14:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18423 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/docview.cpp

index c001cac43acaa48d45ad19da228cf64a9c536383..b0e10bdc68e5b9ea212860989066452f777a139a 100644 (file)
@@ -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 ++;