[MPlayer-cvslog] r35944 - trunk/gui/dialog/fileselect.c

ib subversion at mplayerhq.hu
Sun Mar 10 15:26:48 CET 2013


Author: ib
Date: Sun Mar 10 15:26:48 2013
New Revision: 35944

Log:
Change condition.

The index can't be greater than FF_ARRAY_ELEMS(fsHistory).

Modified:
   trunk/gui/dialog/fileselect.c

Modified: trunk/gui/dialog/fileselect.c
==============================================================================
--- trunk/gui/dialog/fileselect.c	Sun Mar 10 15:26:26 2013	(r35943)
+++ trunk/gui/dialog/fileselect.c	Sun Mar 10 15:26:48 2013	(r35944)
@@ -396,7 +396,7 @@ static void fs_PersistantHistory( char *
     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] );


More information about the MPlayer-cvslog mailing list