summaryrefslogtreecommitdiff
path: root/strmatch
diff options
context:
space:
mode:
authorjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2002-12-29 21:17:21 +0000
committerjerenkrantz <jerenkrantz@13f79535-47bb-0310-9956-ffa450edef68>2002-12-29 21:17:21 +0000
commitedb8381a0c6c9cf7e26d828029f22808099abb17 (patch)
tree9fe677e0aadf1695e65f00ddbaa7ed1fabd0822d /strmatch
parent48e653bad6ca12d72ef1f692af69321d8a4aebd4 (diff)
downloadlibapr-util-edb8381a0c6c9cf7e26d828029f22808099abb17.tar.gz
Fix bug in apr_strmatch when used with case-insensitive patterns.
We must lowercase the s_next value in order to generate the proper shift character when in match_boyer_moore_horspool_nocase. git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@58814 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'strmatch')
-rw-r--r--strmatch/apr_strmatch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/strmatch/apr_strmatch.c b/strmatch/apr_strmatch.c
index 24ee4272..d15d54ef 100644
--- a/strmatch/apr_strmatch.c
+++ b/strmatch/apr_strmatch.c
@@ -112,7 +112,7 @@ static const char *match_boyer_moore_horspool_nocase(
}
s_tmp--;
}
- s_next += shift[(int)*((const unsigned char *)s_next)];
+ s_next += shift[apr_tolower(*s_next)];
}
return NULL;
}