[MPlayer-cvslog] r26977 - trunk/libmenu/menu_filesel.c

diego subversion at mplayerhq.hu
Wed Jun 4 00:35:03 CEST 2008


Author: diego
Date: Wed Jun  4 00:35:02 2008
New Revision: 26977

Log:
Use size_t instead of int for a variable that is compared to the result
of strlen. Fixes a warning about signed and unsigned comparison.
patch by Guillaume LECERF, foxcore gmail com


Modified:
   trunk/libmenu/menu_filesel.c

Modified: trunk/libmenu/menu_filesel.c
==============================================================================
--- trunk/libmenu/menu_filesel.c	(original)
+++ trunk/libmenu/menu_filesel.c	Wed Jun  4 00:35:02 2008
@@ -242,7 +242,7 @@ static int open_dir(menu_t* menu,char* a
     if(dp->d_name[0] == '.' && strcmp(dp->d_name,"..") != 0)
       continue;
     if (menu_chroot && !strcmp (dp->d_name,"..")) {
-      int len = strlen (menu_chroot);
+      size_t len = strlen (menu_chroot);
       if ((strlen (mpriv->dir) == len || strlen (mpriv->dir) == len + 1)
           && !strncmp (mpriv->dir, menu_chroot, len))
         continue;



More information about the MPlayer-cvslog mailing list