Fix a signed error.

This commit is contained in:
Roy Marples 2008-02-18 13:37:58 +00:00
parent 27f97f2106
commit d904acf448

View File

@ -102,7 +102,7 @@ static bool pid_is_exec (pid_t pid, const char *const *argv)
return (false);
argv++;
p += strlen (p) + 1;
if (p - buffer > (unsigned) sizeof (buffer))
if ((unsigned) (p - buffer) > sizeof (buffer))
return (false);
}
return (true);