Use sudo_strtonum() explicitly instead of via a macro.

This commit is contained in:
Todd C. Miller
2019-10-14 10:09:30 -06:00
parent 04a17095be
commit 2512f6efbf
23 changed files with 55 additions and 46 deletions

View File

@@ -60,7 +60,7 @@ check_addr(char *input)
cp = input + len;
while (isspace((unsigned char)*cp))
cp++;
expected = strtonum(cp, 0, 1, &errstr);
expected = sudo_strtonum(cp, 0, 1, &errstr);
if (errstr != NULL)
sudo_fatalx("expecting 0 or 1, got %s", cp);
input[len] = '\0';