From 1113d1cd1f9d36060950443e3c2408223870610c Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 26 Nov 2013 19:25:40 +0000 Subject: unsigned char casts for ctype ok okan --- usr.bin/uniq/uniq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/uniq') 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) -- cgit v1.2.3