Quiet sign comparision warnings.

This commit is contained in:
Todd C. Miller
2013-10-23 15:03:31 -06:00
parent f4d2978f30
commit 07a804caf3
27 changed files with 59 additions and 53 deletions

View File

@@ -767,7 +767,7 @@ sudo_check_suid(const char *sudo)
if ((colon = strchr(cp, ':')))
*colon = '\0';
len = snprintf(pathbuf, sizeof(pathbuf), "%s/%s", cp, sudo);
if (len <= 0 || len >= sizeof(pathbuf))
if (len <= 0 || (size_t)len >= sizeof(pathbuf))
continue;
if (access(pathbuf, X_OK) == 0) {
sudo = pathbuf;