From 4df64266958e843ecc66c15e4521219cb2bb8e95 Mon Sep 17 00:00:00 2001 From: Christophe Jaillet Date: Thu, 10 Dec 2015 20:03:36 +0000 Subject: [PATCH] Use 'apr_pstrmemdup' instead of 'apr_pstrndup' when applicable in order to save a few cycles. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1719189 13f79535-47bb-0310-9956-ffa450edef68 --- server/config.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/config.c b/server/config.c index aea1ff1dbd..024c79e814 100644 --- a/server/config.c +++ b/server/config.c @@ -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++; } -- 2.40.0