From: Tim Kientzle Date: Thu, 28 Apr 2016 06:10:02 +0000 (-0700) Subject: Issue 692: Fix typo in newc cpio test X-Git-Tag: v3.2.0~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ee0eb7953c57f580a32e093da16e276506cf991;p=thirdparty%2Flibarchive.git Issue 692: Fix typo in newc cpio test --- diff --git a/libarchive/test/test_write_format_cpio_newc.c b/libarchive/test/test_write_format_cpio_newc.c index 3bbc17301..48b0b2646 100644 --- a/libarchive/test/test_write_format_cpio_newc.c +++ b/libarchive/test/test_write_format_cpio_newc.c @@ -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 */