]> granicus.if.org Git - apache/commitdiff
s/apr_pstrndup/apr_pstrmemdup/ when applicable
authorChristophe Jaillet <jailletc36@apache.org>
Thu, 26 Mar 2015 22:12:14 +0000 (22:12 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Thu, 26 Mar 2015 22:12:14 +0000 (22:12 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1669461 13f79535-47bb-0310-9956-ffa450edef68

modules/proxy/mod_serf.c

index 463833ea062122388788d9384a98f4162bfa1b4f..520885b75c9053889c231717c465174e984d6ea6 100644 (file)
@@ -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;