You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by tr...@apache.org on 2011/02/14 20:47:32 UTC

svn commit: r1070627 - /httpd/httpd/trunk/modules/cache/cache_util.c

Author: trawick
Date: Mon Feb 14 19:47:31 2011
New Revision: 1070627

URL: http://svn.apache.org/viewvc?rev=1070627&view=rev
Log:
fix theoretical const issue in call to strchr()

Modified:
    httpd/httpd/trunk/modules/cache/cache_util.c

Modified: httpd/httpd/trunk/modules/cache/cache_util.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/cache/cache_util.c?rev=1070627&r1=1070626&r2=1070627&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/cache/cache_util.c (original)
+++ httpd/httpd/trunk/modules/cache/cache_util.c Mon Feb 14 19:47:31 2011
@@ -1037,7 +1037,7 @@ static char *cache_strqtok(char *str, co
     }
 
     /* 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, co
                 quoted = 1;
                 ++*last;
             }
-            else if (!strchr(sep, **last)) {
+            else if (!ap_strchr_c(sep, **last)) {
                 ++*last;
             }
             else {