httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/modules/http mod_mime.c
Date Fri, 07 Dec 2001 12:29:04 GMT
trawick     01/12/07 04:29:04

  Modified:    modules/http mod_mime.c
  Log:
  fix a const-ness problem caused by calling the wrong strchr()
  
  --enable-maintainer-mode and a decent compiler is *so* important!
  
  Revision  Changes    Path
  1.74      +1 -1      httpd-2.0/modules/http/mod_mime.c
  
  Index: mod_mime.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/http/mod_mime.c,v
  retrieving revision 1.73
  retrieving revision 1.74
  diff -u -r1.73 -r1.74
  --- mod_mime.c	2001/12/07 08:48:17	1.73
  +++ mod_mime.c	2001/12/07 12:29:04	1.74
  @@ -548,7 +548,7 @@
       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);
  
  
  

Mime
View raw message