summaryrefslogtreecommitdiffstats
path: root/modules/http/mod_mime.c
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2001-12-07 13:29:04 +0100
committerJeff Trawick <trawick@apache.org>2001-12-07 13:29:04 +0100
commit226d166f3e1d96f1c70a927759638e58280121bf (patch)
treeeba2c077370969aff29c57da022ac820d83f83a4 /modules/http/mod_mime.c
parentRemoved one more strdup in the content-type processing (diff)
downloadapache2-226d166f3e1d96f1c70a927759638e58280121bf.tar.xz
apache2-226d166f3e1d96f1c70a927759638e58280121bf.zip
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
Diffstat (limited to 'modules/http/mod_mime.c')
-rw-r--r--modules/http/mod_mime.c2
1 files changed, 1 insertions, 1 deletions
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);