You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by br...@apache.org on 2001/12/07 04:44:29 UTC
cvs commit: httpd-2.0/modules/http mod_mime.c
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, ' ') ||