1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

unsigned char is the correct type for ctype functions

This commit is contained in:
tedu 2015-02-06 10:50:48 +00:00
parent 7a2625a8a8
commit ff900ac7d5

View File

@ -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))