commit:     90f9598b63f684966a0e3a063d8cfd6b125ea065
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 14 15:17:28 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Dec 14 15:17:28 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=90f9598b

qlop: fix signedness warning

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 qlop.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/qlop.c b/qlop.c
index d8e1d58..7cc8f44 100644
--- a/qlop.c
+++ b/qlop.c
@@ -1109,7 +1109,7 @@ static array_t *probe_proc(array_t *atoms)
                                        rpath[rpathlen] = '\0';
                                        /* check if this points to a portage 
build:
                                         * 
<somepath>/portage/<cat>/<pf>/temp/build.log */
-                                       if (rpathlen > 
sizeof("/temp/build.log") &&
+                                       if ((size_t)rpathlen > 
sizeof("/temp/build.log") &&
                                                                strcmp(rpath + 
rpathlen -
                                                                
(sizeof("/temp/build.log") - 1),
                                                                
"/temp/build.log") == 0 &&

Reply via email to