# HG changeset patch # User diego # Date 1212532502 0 # Node ID b105b2c1f8aec8da955fbe19f941c8725801243b # Parent a7bebd564d09fe230a9cb1a842d9b721e064d130 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 diff -r a7bebd564d09 -r b105b2c1f8ae libmenu/menu_filesel.c --- 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;