summaryrefslogtreecommitdiff
path: root/cpio/test/test_option_version.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpio/test/test_option_version.c')
-rw-r--r--cpio/test/test_option_version.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cpio/test/test_option_version.c b/cpio/test/test_option_version.c
index 32ba3000..ac58cefd 100644
--- a/cpio/test/test_option_version.c
+++ b/cpio/test/test_option_version.c
@@ -75,7 +75,7 @@ verify(const char *p, size_t s)
if (*q == 'a' || *q == 'b' || *q == 'c' || *q == 'd')
++q;
/* Skip arbitrary third-party version numbers. */
- while (s > 0 && (*q == ' ' || *q == '/' || *q == '.' || isalnum(*q))) {
+ while (s > 0 && (*q == ' ' || *q == '-' || *q == '/' || *q == '.' || isalnum(*q))) {
++q;
--s;
}