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

@@ -235,7 +235,8 @@ get_process_ttyname(char *name, size_t namelen)
if (*ep == ' ') {
*ep = '\0';
if (++field == 7) {
int tty_nr = strtonum(cp, INT_MIN, INT_MAX, &errstr);
int tty_nr = sudo_strtonum(cp, INT_MIN, INT_MAX,
&errstr);
if (errstr) {
sudo_debug_printf(SUDO_DEBUG_ERROR|SUDO_DEBUG_LINENO,
"%s: tty device %s: %s", path, cp, errstr);