summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2016-04-27 23:10:02 -0700
committerTim Kientzle <kientzle@gmail.com>2016-04-27 23:10:02 -0700
commit1ee0eb7953c57f580a32e093da16e276506cf991 (patch)
treeb080e026210cbdcf2ae0c6c387faf422fa631bff
parent4aede611b9ea9e481586ed606c5af24b7e468ba7 (diff)
downloadlibarchive-1ee0eb7953c57f580a32e093da16e276506cf991.tar.gz
Issue 692: Fix typo in newc cpio test
-rw-r--r--libarchive/test/test_write_format_cpio_newc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libarchive/test/test_write_format_cpio_newc.c b/libarchive/test/test_write_format_cpio_newc.c
index 3bbc1730..48b0b264 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 */