From b0bf45a54d4619ecd2bd5d59e56eca275a3a8b97 Mon Sep 17 00:00:00 2001 From: "William A. Rowe Jr" Date: Tue, 2 Jun 2009 15:34:46 +0000 Subject: 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 --- strmatch/apr_strmatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'strmatch') 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; } -- cgit v1.2.1