From: Christophe Jaillet Date: Fri, 6 Jan 2017 09:56:53 +0000 (+0000) Subject: Use apr_pstrmemdup instead of apr_pstrndup when applicable X-Git-Tag: 2.5.0-alpha~812 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=6976db2d3876ae7c164af09dd05b12cdf2ac2d62;p=thirdparty%2Fapache%2Fhttpd.git 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 --- diff --git a/modules/cache/cache_util.c b/modules/cache/cache_util.c index 096058308e0..f86d023bb96 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; }