diff options
author | Damien Miller <djm@mindrot.org> | 2013-11-21 03:57:15 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2013-11-21 03:57:15 +0100 |
commit | fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a (patch) | |
tree | e74555afa79597355921b5e6ce9ba4ae901b5253 /match.c | |
parent | - deraadt@cvs.openbsd.org 2013/11/20 20:53:10 (diff) | |
download | openssh-fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a.tar.xz openssh-fdb2306acdc3eb2bc46b6dfdaaf6005c650af22a.zip |
- 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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: match.c,v 1.28 2013/05/17 00:13:13 djm Exp $ */ +/* $OpenBSD: match.c,v 1.29 2013/11/20 20:54:10 deraadt Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * 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, for (subi = 0; i < len && subi < sizeof(sub) - 1 && pattern[i] != ','; subi++, i++) - sub[subi] = dolower && isupper(pattern[i]) ? - (char)tolower(pattern[i]) : pattern[i]; + sub[subi] = dolower && isupper((u_char)pattern[i]) ? + tolower((u_char)pattern[i]) : pattern[i]; /* If subpattern too long, return failure (no match). */ if (subi >= sizeof(sub) - 1) return 0; |