httpd-cvs mailing list archives

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

  Modified:    modules/http mod_mime.c
  Log:
  optimization: replaced an apr_pstrndup call with apr_pstrmemdup
  
  Revision  Changes    Path
  1.71      +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.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- mod_mime.c	2001/11/23 16:35:21	1.70
  +++ mod_mime.c	2001/12/07 03:44:29	1.71
  @@ -548,7 +548,7 @@
   		     (const char *) mp);
   	return (NULL);
       }
  -    ctp->type = apr_pstrndup(p, mp, cp - mp);
  +    ctp->type = apr_pstrmemdup(p, mp, cp - mp);
       ctp->type = zap_sp(ctp->type);
       if (ctp->type == NULL || *(ctp->type) == '\0' ||
   	strchr(ctp->type, ';') || strchr(ctp->type, ' ') ||
  
  
  

Mime
View raw message