summaryrefslogtreecommitdiff
path: root/strmatch
diff options
context:
space:
mode:
authorWilliam A. Rowe Jr <wrowe@apache.org>2009-06-02 15:34:46 +0000
committerWilliam A. Rowe Jr <wrowe@apache.org>2009-06-02 15:34:46 +0000
commitb0bf45a54d4619ecd2bd5d59e56eca275a3a8b97 (patch)
treedf0161fca59a7893d2d7bc274fcbbb5d45a65d7f /strmatch
parent75a593c4ca68a0fe9fc1b93ca63d9e2d85085efd (diff)
downloadapr-b0bf45a54d4619ecd2bd5d59e56eca275a3a8b97.tar.gz
Fix pattern matching for 'signed' tolower() platforms, noted by rpluem
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@781063 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 75ed6153c..6a4bf6f9e 100644
--- a/strmatch/apr_strmatch.c
+++ b/strmatch/apr_strmatch.c
@@ -74,7 +74,7 @@ static const char *match_boyer_moore_horspool_nocase(
}
s_tmp--;
}
- s_next += shift[apr_tolower(*s_next)];
+ s_next += shift[(unsigned char)apr_tolower(*s_next)];
}
return NULL;
}