Use sudo_strtonum() explicitly instead of via a macro.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user