changeset 35850:95ff5695a70b

Change condition. The index can't be greater than FF_ARRAY_ELEMS(fsHistory).
author ib
date Sun, 10 Mar 2013 14:26:48 +0000
parents 4d8a46729aea
children 3ad8e723bb09
files gui/dialog/fileselect.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gui/dialog/fileselect.c	Sun Mar 10 14:26:26 2013 +0000
+++ b/gui/dialog/fileselect.c	Sun Mar 10 14:26:48 2013 +0000
@@ -396,7 +396,7 @@
     entry=fsHistory[i];
     break;
    }
- if ( i >= FF_ARRAY_ELEMS(fsHistory) )
+ if ( i == FF_ARRAY_ELEMS(fsHistory) )
   {
    i=FF_ARRAY_ELEMS(fsHistory)-1;
    nfree( fsHistory[i] );