summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2008-05-30 09:39:09 +0000
committerjoerg <joerg@pkgsrc.org>2008-05-30 09:39:09 +0000
commit749cd8284c55a03ac3a9b9a620b13b7a3f7aa21f (patch)
treed067b3d8820b509b1d376b58f1aee92240e4f605
parent6cd3f90a19cd078ce6e2e693a1dcccba0ae25471 (diff)
downloadpkgsrc-749cd8284c55a03ac3a9b9a620b13b7a3f7aa21f.tar.gz
Apply change 142573 from Perforce master:
Don't use case '1' ... '9', not ISO C.
-rw-r--r--archivers/libarchive/files/tar/subst.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/archivers/libarchive/files/tar/subst.c b/archivers/libarchive/files/tar/subst.c
index ea96d156b7a..4543b6f7526 100644
--- a/archivers/libarchive/files/tar/subst.c
+++ b/archivers/libarchive/files/tar/subst.c
@@ -226,7 +226,15 @@ apply_substitution(struct bsdtar *bsdtar, const char *name, char **result, int s
realloc_strncat(bsdtar, result, rule->result + j, i - j - 1);
j = i;
break;
- case '1' ... '9':
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
realloc_strncat(bsdtar, result, rule->result + j, i - j - 1);
if ((size_t)(c - '0') > (size_t)(rule->re.re_nsub)) {
free(*result);