From 8becb0c5d1a307a7cc84487ba2ad3d7a16a3ae2e Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Fri, 7 Dec 2001 12:29:04 +0000 Subject: [PATCH] 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 --- modules/http/mod_mime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1