changeset 26945:b105b2c1f8ae

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
author diego
date Tue, 03 Jun 2008 22:35:02 +0000
parents a7bebd564d09
children 0bad5baad04a
files libmenu/menu_filesel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmenu/menu_filesel.c	Tue Jun 03 17:16:38 2008 +0000
+++ b/libmenu/menu_filesel.c	Tue Jun 03 22:35:02 2008 +0000
@@ -242,7 +242,7 @@
     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;