summaryrefslogtreecommitdiff
path: root/tar/subst.c
diff options
context:
space:
mode:
authorTim Kientzle <kientzle@gmail.com>2008-05-24 17:19:02 -0400
committerTim Kientzle <kientzle@gmail.com>2008-05-24 17:19:02 -0400
commit2664247853a3152384fffae5e35e3b1911add767 (patch)
tree69598caaf8e944edc97b17fca185bd5fbfb28aef /tar/subst.c
parentf7ed9500b2fe3285722569fed316a9140d01e2ea (diff)
downloadlibarchive-2664247853a3152384fffae5e35e3b1911add767.tar.gz
Enable the new -s substitution support on FreeBSD, include
the new source file, and fix a minor compiler warning in the substitution code. SVN-Revision: 91
Diffstat (limited to 'tar/subst.c')
-rw-r--r--tar/subst.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/subst.c b/tar/subst.c
index 2233a21e..9fcd4d95 100644
--- a/tar/subst.c
+++ b/tar/subst.c
@@ -224,7 +224,7 @@ apply_substitution(struct bsdtar *bsdtar, const char *name, char **result, int s
break;
case '1' ... '9':
realloc_strncat(bsdtar, result, rule->result + j, i - j - 1);
- if (c - '0' > rule->re.re_nsub) {
+ if ((size_t)(c - '0') > (size_t)(rule->re.re_nsub)) {
free(*result);
*result = NULL;
return -1;