diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-06 10:50:49 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-06 10:50:49 +0000 |
commit | 88566330b2e4630b7e1570498c8c080de641a45d (patch) | |
tree | b7ce489680bd529f9d5e42aebe5f4ea6cc495fe8 | |
parent | 1920332f03ea5281b255338bae2a13a5db5a71cd (diff) |
unsigned char is the correct type for ctype functions
-rw-r--r-- | games/fortune/fortune/fortune.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 8aaffbbc660..cf87127b41e 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fortune.c,v 1.41 2015/02/06 10:49:32 tedu Exp $ */ +/* $OpenBSD: fortune.c,v 1.42 2015/02/06 10:50:48 tedu Exp $ */ /* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */ /*- @@ -200,7 +200,7 @@ void rot13(char *p, size_t len) { while (len--) { - char ch = *p; + unsigned char ch = *p; if (isupper(ch)) *p = 'A' + (ch - 'A' + 13) % 26; else if (islower(ch)) |