Add (unsigned char) cast to ctype functions
This commit is contained in:
parent
cf09d2b1ce
commit
88d913ebbe
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: telnet.c,v 1.28 2004/03/20 23:26:05 heas Exp $ */
|
||||
/* $NetBSD: telnet.c,v 1.29 2004/11/04 07:22:47 dsl Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1988, 1990, 1993
|
||||
|
@ -34,7 +34,7 @@
|
|||
#if 0
|
||||
static char sccsid[] = "@(#)telnet.c 8.4 (Berkeley) 5/30/95";
|
||||
#else
|
||||
__RCSID("$NetBSD: telnet.c,v 1.28 2004/03/20 23:26:05 heas Exp $");
|
||||
__RCSID("$NetBSD: telnet.c,v 1.29 2004/11/04 07:22:47 dsl Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -693,7 +693,7 @@ mklist(char *buf, char *name)
|
|||
if ((c == ' ') || !isascii(c))
|
||||
n = 1;
|
||||
else if (islower((unsigned char)c))
|
||||
*cp = toupper(c);
|
||||
*cp = toupper((unsigned char)c);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in New Issue