summaryrefslogtreecommitdiff
path: root/match.c
diff options
context:
space:
mode:
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,
137 i < len && subi < sizeof(sub) - 1 && pattern[i] != ','; 137 i < len && subi < sizeof(sub) - 1 && pattern[i] != ',';
138 subi++, i++) 138 subi++, i++)
139 sub[subi] = dolower && isupper(pattern[i]) ? 139 sub[subi] = dolower && isupper(pattern[i]) ?
140 tolower(pattern[i]) : pattern[i]; 140 (char)tolower(pattern[i]) : pattern[i];
141 /* If subpattern too long, return failure (no match). */ 141 /* If subpattern too long, return failure (no match). */
142 if (subi >= sizeof(sub) - 1) 142 if (subi >= sizeof(sub) - 1)
143 return 0; 143 return 0;