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

@@ -325,7 +325,7 @@ parse_args(int argc, char **argv, int *nargc, char ***nargv,
break;
case 'C':
assert(optarg != NULL);
if (strtonum(optarg, 3, INT_MAX, NULL) == 0) {
if (sudo_strtonum(optarg, 3, INT_MAX, NULL) == 0) {
sudo_warnx(U_("the argument to -C must be a number greater than or equal to 3"));
usage(1);
}