]> granicus.if.org Git - apache/commitdiff
fix const warning with strchr->ap_strchr mapping
authorJeff Trawick <trawick@apache.org>
Sun, 15 Jan 2012 00:27:57 +0000 (00:27 +0000)
committerJeff Trawick <trawick@apache.org>
Sun, 15 Jan 2012 00:27:57 +0000 (00:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1231602 13f79535-47bb-0310-9956-ffa450edef68

modules/test/mod_policy.c

index 9018678a7885aecca517cb82a8f6b73aabc91218..b83e1092ca550967b545cedb6f5ee95ec7268918 100644 (file)
@@ -202,7 +202,7 @@ static apr_status_t policy_type_out_filter(ap_filter_t *f,
         /* content type present and valid? */
         if (f->r->content_type) {
             const char *type = f->r->content_type;
-            const char *end = strchr(type, ';');
+            const char *end = ap_strchr_c(type, ';');
             if (end) {
                 type = apr_pstrmemdup(f->r->pool, type, end - type);
             }