From: Jeff Trawick Date: Mon, 14 Feb 2011 19:47:31 +0000 (+0000) Subject: fix theoretical const issue in call to strchr() X-Git-Tag: 2.3.11~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=063415fc4ac7f652b1b79e33fabb41918598241f;p=thirdparty%2Fapache%2Fhttpd.git fix theoretical const issue in call to strchr() git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070627 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 7a85d249e36..97e55305f55 100644 --- a/modules/cache/cache_util.c +++ b/modules/cache/cache_util.c @@ -1037,7 +1037,7 @@ static char *cache_strqtok(char *str, const char *sep, char **last) } /* skip characters in sep (will terminate at '\0') */ - while (*str && strchr(sep, *str)) { + while (*str && ap_strchr_c(sep, *str)) { ++str; } @@ -1059,7 +1059,7 @@ static char *cache_strqtok(char *str, const char *sep, char **last) quoted = 1; ++*last; } - else if (!strchr(sep, **last)) { + else if (!ap_strchr_c(sep, **last)) { ++*last; } else {