summaryrefslogtreecommitdiff
path: root/modules/cluster
diff options
context:
space:
mode:
authorChristophe Jaillet <jailletc36@apache.org>2013-12-09 20:52:26 +0000
committerChristophe Jaillet <jailletc36@apache.org>2013-12-09 20:52:26 +0000
commita95a9fc800df773a6750353122b04ab330f74279 (patch)
treec8e036ec4ae9bb6fccf7a1f9f7d2a943f944e1f6 /modules/cluster
parentfe746c4bb2e589e923a1d709ad181785668fc0d3 (diff)
downloadhttpd-a95a9fc800df773a6750353122b04ab330f74279.tar.gz
Use apr_pstrmemdup instead of apr_pstrndup when this is safe.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1549676 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/cluster')
-rw-r--r--modules/cluster/mod_heartmonitor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/cluster/mod_heartmonitor.c b/modules/cluster/mod_heartmonitor.c
index 8e4231dc37..b3d666ba22 100644
--- a/modules/cluster/mod_heartmonitor.c
+++ b/modules/cluster/mod_heartmonitor.c
@@ -292,7 +292,7 @@ static apr_status_t hm_file_update_stat(hm_ctx_t *ctx, hm_server_t *s, apr_pool_
buf[bsize - 1] = 0;
t = strchr(buf, ' ');
if (t) {
- ip = apr_pstrndup(pool, buf, t - buf);
+ ip = apr_pstrmemdup(pool, buf, t - buf);
} else {
ip = NULL;
}