]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Issue 692: Fix typo in newc cpio test
authorTim Kientzle <kientzle@gmail.com>
Thu, 28 Apr 2016 06:10:02 +0000 (23:10 -0700)
committerTim Kientzle <kientzle@gmail.com>
Thu, 28 Apr 2016 06:10:02 +0000 (23:10 -0700)
libarchive/test/test_write_format_cpio_newc.c

index 3bbc173017f93e0c4d5053748ad6fab9f56617d1..48b0b264647252679021815c6bc26c6d6b9346a4 100644 (file)
@@ -30,7 +30,7 @@ static int
 is_hex(const char *p, size_t l)
 {
        while (l > 0) {
-               if (*p >= 0 && *p <= '9') {
+               if (*p >= '0' && *p <= '9') {
                        /* Ascii digit */
                } else if (*p >= 'a' && *p <= 'f') {
                        /* lowercase letter a-f */