]> granicus.if.org Git - apache/commitdiff
fix a const-ness problem caused by calling the wrong strchr()
authorJeff Trawick <trawick@apache.org>
Fri, 7 Dec 2001 12:29:04 +0000 (12:29 +0000)
committerJeff Trawick <trawick@apache.org>
Fri, 7 Dec 2001 12:29:04 +0000 (12:29 +0000)
--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

index 0facf1927f8a5dcdac0d3ab71145132d6571e038..77ed062edd7f1d0aec77f98ad2c70b1ae5dbcbd4 100644 (file)
@@ -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);