svn commit: r191188 - head/usr.bin/tar

Tim Kientzle kientzle at FreeBSD.org
Fri Apr 17 03:37:10 UTC 2009


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


More information about the svn-src-all mailing list