diff options
author | mmcc <mmcc@cvs.openbsd.org> | 2015-10-24 17:46:20 +0000 |
---|---|---|
committer | mmcc <mmcc@cvs.openbsd.org> | 2015-10-24 17:46:20 +0000 |
commit | 3b994cdef316d0e93ff3e3e6b8a93f6e0ff6fe0f (patch) | |
tree | 0b1d021d7a5113feda07622ff8a26798a8eabf9b /games | |
parent | 50f7ad46e4986c177efa7d0497619a66ec9554c0 (diff) |
Cast toupper()'s argument to unsigned char.
ok guenther@
Diffstat (limited to 'games')
-rw-r--r-- | games/hunt/hunt/otto.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/hunt/hunt/otto.c b/games/hunt/hunt/otto.c index cd6ad5967f5..09a68c1fcdb 100644 --- a/games/hunt/hunt/otto.c +++ b/games/hunt/hunt/otto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: otto.c,v 1.10 2013/08/29 20:22:14 naddy Exp $ */ +/* $OpenBSD: otto.c,v 1.11 2015/10/24 17:46:19 mmcc Exp $ */ /* $NetBSD: otto.c,v 1.2 1997/10/10 16:32:39 lukem Exp $ */ /* * Copyright (c) 1983-2003, Regents of the University of California. @@ -395,7 +395,7 @@ face_and_move_direction(rel_dir, distance) int i; struct item items[NUMDIRECTIONS]; - command[comlen++] = toupper(cmd); + command[comlen++] = toupper((unsigned char)cmd); if (distance == 0) { /* rotate ottolook's to be in right position */ for (i = 0; i < NUMDIRECTIONS; i++) |