From c1dbd41d2b2e6727917956891df529e6adc8e09e Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] pgrep: Replace ints with longs in strict_atol(). atol() means long, and value points to a long. --- pgrep.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;