]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
fix theoretical const issue in call to strchr()
authorJeff Trawick <trawick@apache.org>
Mon, 14 Feb 2011 19:47:31 +0000 (19:47 +0000)
committerJeff Trawick <trawick@apache.org>
Mon, 14 Feb 2011 19:47:31 +0000 (19:47 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1070627 13f79535-47bb-0310-9956-ffa450edef68

modules/cache/cache_util.c

index 7a85d249e362ed73279e0932084b77b813cf6db8..97e55305f5575981399526fe921342add6252e87 100644 (file)
@@ -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 {