summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tar/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tar/util.c b/usr.bin/tar/util.c
index 877cdbf..7b2da48 100644
--- a/usr.bin/tar/util.c
+++ b/usr.bin/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':
OpenPOWER on IntegriCloud