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-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f7392d66a5bce5923e271a6264d0c6628f08901d;p=apache 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 041f5ed09f..c776371936 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, ' ') ||