diff options
author | Christophe Jaillet <jailletc36@apache.org> | 2013-12-09 20:52:26 +0000 |
---|---|---|
committer | Christophe Jaillet <jailletc36@apache.org> | 2013-12-09 20:52:26 +0000 |
commit | a95a9fc800df773a6750353122b04ab330f74279 (patch) | |
tree | c8e036ec4ae9bb6fccf7a1f9f7d2a943f944e1f6 /modules/cluster | |
parent | fe746c4bb2e589e923a1d709ad181785668fc0d3 (diff) | |
download | httpd-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.c | 2 |
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; } |