From: Jeff Trawick Date: Fri, 7 Dec 2001 12:29:04 +0000 (+0000) Subject: fix a const-ness problem caused by calling the wrong strchr() X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8becb0c5d1a307a7cc84487ba2ad3d7a16a3ae2e;p=apache fix a const-ness problem caused by calling the wrong strchr() --enable-maintainer-mode and a decent compiler is *so* important! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92365 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 0facf1927f..77ed062edd 100644 --- a/modules/http/mod_mime.c +++ b/modules/http/mod_mime.c @@ -548,7 +548,7 @@ static content_type *analyze_ct(request_rec *r, const char *s) mp = s; /* getting a type */ - if (!(cp = strchr(mp, '/'))) { + if (!(cp = ap_strchr_c(mp, '/'))) { ap_log_error(APLOG_MARK, APLOG_WARNING, 0, ss, "mod_mime: analyze_ct: cannot get media type from '%s'", (const char *) mp);