diff options
author | tjr <tjr@FreeBSD.org> | 2004-07-15 09:23:04 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2004-07-15 09:23:04 +0000 |
commit | 74042ab74bc5e16f90924e887dfab3323176760a (patch) | |
tree | 8b43cd4161d1e4ad683c33e223172fb8ce9f138c /usr.bin/column/column.c | |
parent | c63c3a56b81ac6abc07f7c5a5060533f1c43bc1b (diff) | |
download | FreeBSD-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/column.c')
-rw-r--r-- | usr.bin/column/column.c | 2 |
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'))) { |