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

@@ -834,7 +834,7 @@ store_int(const char *str, union sudo_defs_val *sd_un)
if (str == NULL) {
sd_un->ival = 0;
} else {
i = strtonum(str, INT_MIN, INT_MAX, &errstr);
i = sudo_strtonum(str, INT_MIN, INT_MAX, &errstr);
if (errstr != NULL) {
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
"%s: %s", str, errstr);
@@ -855,7 +855,7 @@ store_uint(const char *str, union sudo_defs_val *sd_un)
if (str == NULL) {
sd_un->uival = 0;
} else {
u = strtonum(str, 0, UINT_MAX, &errstr);
u = sudo_strtonum(str, 0, UINT_MAX, &errstr);
if (errstr != NULL) {
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
"%s: %s", str, errstr);