summaryrefslogtreecommitdiff
path: root/tar/util.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-03-08 14:18:36 -0400
committerJoerg Sonnenberger <joerg.sonnenberger@gmail.com>2009-03-08 14:18:36 -0400
commit411e8f16860964222d412ecd9e56e8c7ee82f41c (patch)
treef2069a5fd9c4525062d93e18848a0b461dbbbd68 /tar/util.c
parentdf3342602e7a5108fe636a2ad9b17df4c7468e8b (diff)
downloadlibarchive-411e8f16860964222d412ecd9e56e8c7ee82f41c.tar.gz
Be pedantic about argument range for ctype macros.
SVN-Revision: 750
Diffstat (limited to 'tar/util.c')
-rw-r--r--tar/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tar/util.c b/tar/util.c
index 84aba500..274ff03c 100644
--- a/tar/util.c
+++ b/tar/util.c
@@ -178,7 +178,7 @@ bsdtar_expand_char(char *buff, size_t offset, char c)
{
size_t i = offset;
- if (isprint(c) && c != '\\')
+ if (isprint((unsigned char)c) && c != '\\')
buff[i++] = c;
else {
buff[i++] = '\\';
@@ -254,7 +254,7 @@ yes(const char *fmt, ...)
buff[l] = 0;
for (p = buff; *p != '\0'; p++) {
- if (isspace(0xff & (int)*p))
+ if (isspace((unsigned char)*p))
continue;
switch(*p) {
case 'y': case 'Y':