]> granicus.if.org Git - apache/commitdiff
optimization: replaced an apr_pstrndup call with apr_pstrmemdup
authorBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 03:44:29 +0000 (03:44 +0000)
committerBrian Pane <brianp@apache.org>
Fri, 7 Dec 2001 03:44:29 +0000 (03:44 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92359 13f79535-47bb-0310-9956-ffa450edef68

modules/http/mod_mime.c

index 041f5ed09f509159f0aff029e9e18dba51622a38..c776371936efa16b4d351f945000d22575ffd40c 100644 (file)
@@ -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, ' ') ||