]> granicus.if.org Git - apache/commitdiff
Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to save a...
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 10 Dec 2015 20:03:36 +0000 (20:03 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 10 Dec 2015 20:03:36 +0000 (20:03 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1719189 13f79535-47bb-0310-9956-ffa450edef68

server/config.c

index aea1ff1dbd3da8e0230221ee440362b171101f19..024c79e8144ef2144607c0d28dae58ba006c3c75 100644 (file)
@@ -1917,7 +1917,7 @@ static const char *process_resource_config_fnmatch(server_rec *s,
     /* find the first part of the filename */
     rest = ap_strchr_c(fname, '/');
     if (rest) {
-        fname = apr_pstrndup(ptemp, fname, rest - fname);
+        fname = apr_pstrmemdup(ptemp, fname, rest - fname);
         rest++;
     }