This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch master
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=ec1bd98b02630c00e4e367b7fba07e7ccbd64c77

commit ec1bd98b02630c00e4e367b7fba07e7ccbd64c77
Author: Guillem Jover <[email protected]>
AuthorDate: Tue Jun 5 05:33:23 2018 +0200

    libdpkg: Do not compare an unsigned int with <=
    
    Warned-by: cppcheck
---
 lib/dpkg/tarfn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c
index 3ad531555..16005e6f8 100644
--- a/lib/dpkg/tarfn.c
+++ b/lib/dpkg/tarfn.c
@@ -157,7 +157,7 @@ tar_atol256(const char *s, size_t size, intmax_t min, 
uintmax_t max)
 
        for (;;) {
                n = (n << 8) | c;
-               if (--size <= 0)
+               if (--size == 0)
                        break;
                c = *s++;
        }

-- 
Dpkg.Org's dpkg

Reply via email to