From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 (+0000) Subject: pgrep: Replace ints with longs in strict_atol(). X-Git-Tag: v3.3.15~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1dbd41d2b2e6727917956891df529e6adc8e09e;p=procps-ng pgrep: Replace ints with longs in strict_atol(). atol() means long, and value points to a long. --- diff --git a/pgrep.c b/pgrep.c index 9887402d..67632661 100644 --- a/pgrep.c +++ b/pgrep.c @@ -192,8 +192,8 @@ static struct el *split_list (const char *restrict str, int (*convert)(const cha * contains a plain number, FALSE if there are any non-digits. */ static int strict_atol (const char *restrict str, long *restrict value) { - int res = 0; - int sign = 1; + long res = 0; + long sign = 1; if (*str == '+') ++str;