Date: Fri, 17 Apr 2009 03:37:09 +0000 (UTC) From: Tim Kientzle <kientzle@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191188 - head/usr.bin/tar Message-ID: <200904170337.n3H3b9Og006229@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kientzle Date: Fri Apr 17 03:37:09 2009 New Revision: 191188 URL: http://svn.freebsd.org/changeset/base/191188 Log: Minor portability improvement in calls to ctype.h macros. Modified: head/usr.bin/tar/util.c Modified: head/usr.bin/tar/util.c ============================================================================== --- head/usr.bin/tar/util.c Fri Apr 17 03:36:07 2009 (r191187) +++ head/usr.bin/tar/util.c Fri Apr 17 03:37:09 2009 (r191188) @@ -178,7 +178,7 @@ bsdtar_expand_char(char *buff, size_t of { 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':
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904170337.n3H3b9Og006229>