From 20a4cb117583a7d9f45bf4a32631e2e8edf26405 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Tue, 2 Jun 2009 15:35:22 +0000 Subject: [PATCH] Fix pattern matching for 'signed' tolower() platforms, noted by rpluem git-svn-id: https://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x@781066 13f79535-47bb-0310-9956-ffa450edef68 --- strmatch/apr_strmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strmatch/apr_strmatch.c b/strmatch/apr_strmatch.c index 4ca9d1d37..373644289 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; }