From 9cfc1b8c1fdb8c3b6734efa5597fe2cd8419184a Mon Sep 17 00:00:00 2001 From: Qualys Security Advisory Date: Thu, 1 Jan 1970 00:00:00 +0000 Subject: [PATCH] 0003-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 a95bd672..36936900 100644 --- a/pgrep.c +++ b/pgrep.c @@ -207,8 +207,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; -- 2.40.0