From: Christophe Jaillet Date: Thu, 26 Mar 2015 22:12:14 +0000 (+0000) Subject: s/apr_pstrndup/apr_pstrmemdup/ when applicable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a51244bed535199a1f7e00cad46eef97992511dd;p=thirdparty%2Fapache%2Fhttpd.git s/apr_pstrndup/apr_pstrmemdup/ when applicable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1669461 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/modules/proxy/mod_serf.c b/modules/proxy/mod_serf.c index 463833ea062..520885b75c9 100644 --- a/modules/proxy/mod_serf.c +++ b/modules/proxy/mod_serf.c @@ -700,7 +700,7 @@ static const char *add_cluster(cmd_parms *cmd, void *d, if (x && strlen(p) > 1) { apr_table_addn(cluster->params, - apr_pstrndup(cmd->pool, p, x-p), + apr_pstrmemdup(cmd->pool, p, x-p), x+1); } else { @@ -884,7 +884,7 @@ static apr_status_t read_heartbeats(const char *path, continue; } - ip = apr_pstrndup(pool, buf, t - buf); + ip = apr_pstrmemdup(pool, buf, t - buf); t++; server = apr_pcalloc(pool, sizeof(hb_server_t)); server->ip = ip;