From d0839a306373e62cd0694f343c7fbaf89183d83a Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 10:44:43 +0200 Subject: [PATCH] processes plugin: len is unsigned [src/processes.c:1219]: (style) Checking if unsigned variable 'len' is less than zero. --- src/processes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/processes.c b/src/processes.c index efc64d01..4f2283fc 100644 --- a/src/processes.c +++ b/src/processes.c @@ -1216,7 +1216,7 @@ static char *ps_get_cmdline (long pid, char *name, char *buf, size_t buf_len) buf_ptr += status; len -= status; - if (len <= 0) + if (len == 0) break; } -- 2.30.2