summaryrefslogtreecommitdiffstats
path: root/match.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 05:09:54 +0200
committerDamien Miller <djm@mindrot.org>2006-03-26 05:09:54 +0200
commit1d2b6706ba1b2000bd807731e6d8e35691eaf8df (patch)
treeb61365d7696fe908a14fd643362e3728e71846a3 /match.c
parent - deraadt@cvs.openbsd.org 2006/03/20 18:41:43 (diff)
downloadopenssh-1d2b6706ba1b2000bd807731e6d8e35691eaf8df.tar.xz
openssh-1d2b6706ba1b2000bd807731e6d8e35691eaf8df.zip
- deraadt@cvs.openbsd.org 2006/03/20 18:42:27
[canohost.c match.c ssh.c sshconnect.c] be strict with tolower() casting
Diffstat (limited to 'match.c')
-rw-r--r--match.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/match.c b/match.c
index 736047df1..e08afdeb0 100644
--- a/match.c
+++ b/match.c
@@ -137,7 +137,7 @@ match_pattern_list(const char *string, const char *pattern, u_int len,
i < len && subi < sizeof(sub) - 1 && pattern[i] != ',';
subi++, i++)
sub[subi] = dolower && isupper(pattern[i]) ?
- tolower(pattern[i]) : pattern[i];
+ (char)tolower(pattern[i]) : pattern[i];
/* If subpattern too long, return failure (no match). */
if (subi >= sizeof(sub) - 1)
return 0;