summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorjoerg <joerg>2008-05-30 09:39:09 +0000
committerjoerg <joerg>2008-05-30 09:39:09 +0000
commit657aaad279f26e9c828daf293ea5e2df512a28df (patch)
tree159f34858569c60add28aee154ef875aef208162 /archivers
parent25a995c4f30b2ac54da711b14572bd75cb76ec60 (diff)
downloadpkgsrc-657aaad279f26e9c828daf293ea5e2df512a28df.tar.gz
Apply change 142573 from Perforce master:
Don't use case '1' ... '9', not ISO C.
Diffstat (limited to 'archivers')
-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);