Minor portability improvement in calls to ctype.h macros.

This commit is contained in:
Tim Kientzle 2009-04-17 03:37:09 +00:00
parent c7e120041d
commit 6ffa10bc90
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191188

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