diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-26 19:25:40 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-11-26 19:25:40 +0000 |
commit | 1113d1cd1f9d36060950443e3c2408223870610c (patch) | |
tree | 47477f2a5ccfd2e6892bce4543fd5ed0e57f4c66 /usr.bin/uniq | |
parent | 4ad36533b573710998fc58a75257f9c97157b382 (diff) |
unsigned char casts for ctype
ok okan
Diffstat (limited to 'usr.bin/uniq')
-rw-r--r-- | usr.bin/uniq/uniq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c index 8bcff412f20..7645f85062f 100644 --- a/usr.bin/uniq/uniq.c +++ b/usr.bin/uniq/uniq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uniq.c,v 1.18 2009/10/27 23:59:46 deraadt Exp $ */ +/* $OpenBSD: uniq.c,v 1.19 2013/11/26 19:25:39 deraadt Exp $ */ /* $NetBSD: uniq.c,v 1.7 1995/08/31 22:03:48 jtc Exp $ */ /* @@ -173,9 +173,9 @@ skip(char *str) int nchars, nfields; for (nfields = numfields; nfields && *str; nfields--) { - while (isblank(*str)) + while (isblank((unsigned char)*str)) str++; - while (*str && !isblank(*str)) + while (*str && !isblank((unsigned char)*str)) str++; } for (nchars = numchars; nchars-- && *str && *str != '\n'; ++str) |