]> granicus.if.org Git - apache/commitdiff
don't lose const when calling strrchr()
authorJeff Trawick <trawick@apache.org>
Thu, 5 Sep 2002 11:04:25 +0000 (11:04 +0000)
committerJeff Trawick <trawick@apache.org>
Thu, 5 Sep 2002 11:04:25 +0000 (11:04 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96646 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index 7899049f92abd5321e0fe42be463b9d6534cb842..e91cdf987213d562f0eaf1a891ef65e4bc3fbd77 100644 (file)
@@ -804,7 +804,7 @@ static int find_ct(request_rec *r)
 
     /* Always drop the path leading up to the file name.
      */
-    if ((fn = strrchr(resource_name, '/')) == NULL) {
+    if ((fn = ap_strrchr_c(resource_name, '/')) == NULL) {
         fn = resource_name;
     }
     else {