- [email protected] 2013/11/20 20:54:10
[canohost.c clientloop.c match.c readconf.c sftp.c]
unsigned casts for ctype macros where neccessary
ok guenther millert markus
This commit is contained in:
1 parent
e00167307e
commit
fdb2306acd
6 files changed
+16
-13
No files matched your search
+4
-4
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: clientloop.c,v 1.255 2013/11/08 00:39:15 djm Exp $ */
|
||||
/* $OpenBSD: clientloop.c,v 1.256 2013/11/20 20:54:10 deraadt Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <[email protected]>
|
||||
* Copyright (c) 1995 Tatu Ylonen <[email protected]>, Espoo, Finland
|
||||
@@ -289,7 +289,7 @@ client_x11_display_valid(const char *display)
|
||||
|
||||
dlen = strlen(display);
|
||||
for (i = 0; i < dlen; i++) {
|
||||
if (!isalnum(display[i]) &&
|
||||
if (!isalnum((u_char)display[i]) &&
|
||||
strchr(SSH_X11_VALID_DISPLAY_CHARS, display[i]) == NULL) {
|
||||
debug("Invalid character '%c' in DISPLAY", display[i]);
|
||||
return 0;
|
||||
@@ -884,7 +884,7 @@ process_cmdline(void)
|
||||
cmd = s = read_passphrase("\r\nssh> ", RP_ECHO);
|
||||
if (s == NULL)
|
||||
goto out;
|
||||
while (isspace(*s))
|
||||
while (isspace((u_char)*s))
|
||||
s++;
|
||||
if (*s == '-')
|
||||
s++; /* Skip cmdline '-', if any */
|
||||
@@ -938,7 +938,7 @@ process_cmdline(void)
|
||||
goto out;
|
||||
}
|
||||
|
||||
while (isspace(*++s))
|
||||
while (isspace((u_char)*++s))
|
||||
;
|
||||
|
||||
/* XXX update list of forwards in options */
|
||||
|
||||
Reference in new issue
Block a user