From a70a6d29125eae8be3c884eae33beda07a1937a1 Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Sun, 24 Oct 2010 19:20:25 -0500 Subject: [PATCH] Really fix STANDBY FOLLOW this time. --- repmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/repmgr.c b/repmgr.c index 35a31781..b81cb528 100644 --- a/repmgr.c +++ b/repmgr.c @@ -1127,8 +1127,10 @@ do_standby_follow(void) * before closing the connection because we will need them to * recreate the recovery.conf file */ - host = PQhost(master_conn); - masterport = PQport(master_conn); + host = malloc(20); + masterport = malloc(10); + strcpy(host, PQhost(master_conn)); + strcpy(masterport, PQport(master_conn)); PQfinish(master_conn); if (verbose)