--- embedaddon/sudo/plugins/sudoers/find_path.c 2013/07/22 10:46:12 1.1.1.3 +++ embedaddon/sudo/plugins/sudoers/find_path.c 2014/06/15 16:12:54 1.1.1.4 @@ -105,7 +105,7 @@ find_path(char *infile, char **outfile, struct stat *s * Resolve the path and exit the loop if found. */ len = snprintf(command, sizeof(command), "%s/%s", path, infile); - if (len <= 0 || len >= sizeof(command)) { + if (len <= 0 || (size_t)len >= sizeof(command)) { errno = ENAMETOOLONG; fatal("%s", infile); } @@ -122,7 +122,7 @@ find_path(char *infile, char **outfile, struct stat *s */ if (!found && checkdot) { len = snprintf(command, sizeof(command), "./%s", infile); - if (len <= 0 || len >= sizeof(command)) { + if (len <= 0 || (size_t)len >= sizeof(command)) { errno = ENAMETOOLONG; fatal("%s", infile); }