httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaillet...@apache.org
Subject svn commit: r1669461 - /httpd/httpd/trunk/modules/proxy/mod_serf.c
Date Thu, 26 Mar 2015 22:12:14 GMT
Author: jailletc36
Date: Thu Mar 26 22:12:14 2015
New Revision: 1669461

URL: http://svn.apache.org/r1669461
Log:
s/apr_pstrndup/apr_pstrmemdup/ when applicable

Modified:
    httpd/httpd/trunk/modules/proxy/mod_serf.c

Modified: httpd/httpd/trunk/modules/proxy/mod_serf.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/proxy/mod_serf.c?rev=1669461&r1=1669460&r2=1669461&view=diff
==============================================================================
--- httpd/httpd/trunk/modules/proxy/mod_serf.c (original)
+++ httpd/httpd/trunk/modules/proxy/mod_serf.c Thu Mar 26 22:12:14 2015
@@ -700,7 +700,7 @@ static const char *add_cluster(cmd_parms
 
         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(cons
                 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;



Mime
View raw message