From: Brian Pane Date: Fri, 7 Dec 2001 03:44:29 +0000 (+0000) Subject: optimization: replaced an apr_pstrndup call with apr_pstrmemdup X-Git-Tag: 2.0.30~271 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a262e4072876d799622f481eec4beafa915dda5e;p=thirdparty%2Fapache%2Fhttpd.git optimization: replaced an apr_pstrndup call with apr_pstrmemdup git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92359 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/http/mod_mime.c b/modules/http/mod_mime.c index 041f5ed09f5..c776371936e 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, char *s) (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, ' ') ||