summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authordjm <djm>2006-03-26 03:09:54 +0000
committerdjm <djm>2006-03-26 03:09:54 +0000
commit7284326655a21a54c622ecce07addb70e2a1f6ac (patch)
tree6242f80de46609b550dc65c78ea4ae0b3eeaee7c /match.c
parent6eb6e682574dc1ad810748e3c7e80e9c90fb405a (diff)
downloadopenssh-7284326655a21a54c622ecce07addb70e2a1f6ac.tar.gz
- 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 736047df..e08afdeb 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;