summaryrefslogtreecommitdiffstats
path: root/usr.bin/column
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2004-07-15 09:23:04 +0000
committertjr <tjr@FreeBSD.org>2004-07-15 09:23:04 +0000
commit74042ab74bc5e16f90924e887dfab3323176760a (patch)
tree8b43cd4161d1e4ad683c33e223172fb8ce9f138c /usr.bin/column
parentc63c3a56b81ac6abc07f7c5a5060533f1c43bc1b (diff)
downloadFreeBSD-src-74042ab74bc5e16f90924e887dfab3323176760a.zip
FreeBSD-src-74042ab74bc5e16f90924e887dfab3323176760a.tar.gz
Avoid passing negative values to isspace() on machines with signed chars.
Diffstat (limited to 'usr.bin/column')
-rw-r--r--usr.bin/column/column.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c
index 31f316f..0385652 100644
--- a/usr.bin/column/column.c
+++ b/usr.bin/column/column.c
@@ -269,7 +269,7 @@ input(FILE *fp)
NULL)
err(1, (char *)NULL);
while (fgets(buf, MAXLINELEN, fp)) {
- for (p = buf; *p && isspace(*p); ++p);
+ for (p = buf; *p && isspace((unsigned char)*p); ++p);
if (!*p)
continue;
if (!(p = strchr(p, '\n'))) {
OpenPOWER on IntegriCloud