From 9c87bfa9d5ea46fd4fe5c8edb947aec28e748573 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Tue, 26 Nov 2013 13:19:08 +0000 Subject: unsigned char casts for ctype ok krw --- usr.bin/column/column.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/column/column.c') diff --git a/usr.bin/column/column.c b/usr.bin/column/column.c index d3b96a2822c..9cd597cab5d 100644 --- a/usr.bin/column/column.c +++ b/usr.bin/column/column.c @@ -1,4 +1,4 @@ -/* $OpenBSD: column.c,v 1.15 2009/10/27 23:59:36 deraadt Exp $ */ +/* $OpenBSD: column.c,v 1.16 2013/11/26 13:18:55 deraadt Exp $ */ /* $NetBSD: column.c,v 1.4 1995/09/02 05:53:03 jtc Exp $ */ /* @@ -256,7 +256,7 @@ input(FILE *fp) if (!list) list = emalloc((maxentry = DEFNUM) * sizeof(char *)); while (fgets(buf, MAXLINELEN, fp)) { - for (p = buf; isspace(*p); ++p); + for (p = buf; isspace((unsigned char)*p); ++p); if (!*p) continue; if (!(p = strchr(p, '\n'))) { -- cgit v1.2.3