summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormmcc <mmcc@openbsd.org>2015-10-24 17:36:06 +0000
committermmcc <mmcc@openbsd.org>2015-10-24 17:36:06 +0000
commit02fcf05ac922e302cdc99b5c283e86f28e371f30 (patch)
tree9a6f665e536b7ad5db277d7d88ca8a073fd126af
parentCast isblank()'s argument to unsigned char. (diff)
downloadwireguard-openbsd-02fcf05ac922e302cdc99b5c283e86f28e371f30.tar.xz
wireguard-openbsd-02fcf05ac922e302cdc99b5c283e86f28e371f30.zip
Cast isalpha()'s argument to unsigned char.
ok guenther@
-rw-r--r--games/gomoku/stoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/games/gomoku/stoc.c b/games/gomoku/stoc.c
index c679e6ed67a..ca25100e580 100644
--- a/games/gomoku/stoc.c
+++ b/games/gomoku/stoc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: stoc.c,v 1.8 2009/10/27 23:59:24 deraadt Exp $ */
+/* $OpenBSD: stoc.c,v 1.9 2015/10/24 17:36:06 mmcc Exp $ */
/*
* Copyright (c) 1994
* The Regents of the University of California. All rights reserved.
@@ -78,7 +78,7 @@ ctos(mp)
for (i = 0; mv[i].m_code >= 0; i++)
if (strcmp(mp, mv[i].m_text) == 0)
return(mv[i].m_code);
- if (!isalpha(mp[0]))
+ if (!isalpha((unsigned char)mp[0]))
return(ILLEGAL);
i = atoi(&mp[1]);
if (i < 1 || i > 19)