Minor portability improvement in calls to ctype.h macros.

This commit is contained in:
kientzle 2009-04-17 03:37:09 +00:00
parent 1d72251133
commit a88f72ea58

View File

@ -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':