From 2c2460a1ae9de8f288a4bc11322ae7ebf69f6a03 Mon Sep 17 00:00:00 2001 From: mmcc Date: Sat, 24 Oct 2015 17:27:06 +0000 Subject: [PATCH] Cast islower()'s argument to unsigned char. ok guenther@ --- games/boggle/mkdict/mkdict.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/games/boggle/mkdict/mkdict.c b/games/boggle/mkdict/mkdict.c index 6a4f7d4ebad..7ef93ef9c3a 100644 --- a/games/boggle/mkdict/mkdict.c +++ b/games/boggle/mkdict/mkdict.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mkdict.c,v 1.11 2009/10/27 23:59:24 deraadt Exp $ */ +/* $OpenBSD: mkdict.c,v 1.12 2015/10/24 17:27:06 mmcc Exp $ */ /* $NetBSD: mkdict.c,v 1.2 1995/03/21 12:14:49 cgd Exp $ */ /*- @@ -80,7 +80,7 @@ main(int argc, char *argv[]) } len = 0; for (p = buf[current]; *p != '\n'; p++) { - if (!islower(*p)) + if (!islower((unsigned char)*p)) break; if (*p == 'q') { q = p + 1; -- 2.20.1