Cast islower()'s argument to unsigned char.
authormmcc <mmcc@openbsd.org>
Sat, 24 Oct 2015 17:27:06 +0000 (17:27 +0000)
committermmcc <mmcc@openbsd.org>
Sat, 24 Oct 2015 17:27:06 +0000 (17:27 +0000)
ok guenther@

games/boggle/mkdict/mkdict.c

index 6a4f7d4..7ef93ef 100644 (file)
@@ -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;