summaryrefslogtreecommitdiff
path: root/modules/cache
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2017-01-06 09:56:53 +0000
committerChristophe Jaillet <jailletc36@apache.org>2017-01-06 09:56:53 +0000
commit6976db2d3876ae7c164af09dd05b12cdf2ac2d62 (patch)
treed8f213f3d090837d5b2052524a4ee06e17361ad9 /modules/cache
parent6f2a3a16830f8efe4e2a497b7607233680277dc4 (diff)
downloadhttpd-6976db2d3876ae7c164af09dd05b12cdf2ac2d62.tar.gz
Use apr_pstrmemdup instead of apr_pstrndup when applicable
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1777556 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cache')
-rw-r--r--modules/cache/cache_util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c
index 096058308e..f86d023bb9 100644
--- a/modules/cache/cache_util.c
+++ b/modules/cache/cache_util.c
@@ -809,7 +809,7 @@ CACHE_DECLARE(const char *)ap_cache_tokstr(apr_pool_t *p, const char *list,
*str = s;
if (i)
- return apr_pstrndup(p, list, i);
+ return apr_pstrmemdup(p, list, i);
else
return NULL;
}