From ba8bc09ce473d25903ed39d53434e5eb388a515b Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Sun, 15 Jan 2012 00:27:57 +0000 Subject: [PATCH] fix const warning with strchr->ap_strchr mapping git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1231602 13f79535-47bb-0310-9956-ffa450edef68 --- modules/test/mod_policy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/test/mod_policy.c b/modules/test/mod_policy.c index 9018678a78..b83e1092ca 100644 --- a/modules/test/mod_policy.c +++ b/modules/test/mod_policy.c @@ -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); } -- 2.50.1