summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-11-21 13:57:15 +1100
committerDamien Miller <djm@mindrot.org>2013-11-21 13:57:15 +1100
commitfdb2306acdc3eb2bc46b6dfdaaf6005c650af22a (patch)
treee74555afa79597355921b5e6ce9ba4ae901b5253 /match.c
parente00167307e4d3692695441e9bd712f25950cb894 (diff)
- deraadt@cvs.openbsd.org 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
Diffstat (limited to 'match.c')
-rw-r--r--match.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/match.c b/match.c
index 7be7d2c5c..c35e32896 100644
--- a/match.c
+++ b/match.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: match.c,v 1.28 2013/05/17 00:13:13 djm Exp $ */ 1/* $OpenBSD: match.c,v 1.29 2013/11/20 20:54:10 deraadt Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -141,8 +141,8 @@ match_pattern_list(const char *string, const char *pattern, u_int len,
141 for (subi = 0; 141 for (subi = 0;
142 i < len && subi < sizeof(sub) - 1 && pattern[i] != ','; 142 i < len && subi < sizeof(sub) - 1 && pattern[i] != ',';
143 subi++, i++) 143 subi++, i++)
144 sub[subi] = dolower && isupper(pattern[i]) ? 144 sub[subi] = dolower && isupper((u_char)pattern[i]) ?
145 (char)tolower(pattern[i]) : pattern[i]; 145 tolower((u_char)pattern[i]) : pattern[i];
146 /* If subpattern too long, return failure (no match). */ 146 /* If subpattern too long, return failure (no match). */
147 if (subi >= sizeof(sub) - 1) 147 if (subi >= sizeof(sub) - 1)
148 return 0; 148 return 0;