diff --git a/repmgr.c b/repmgr.c index c170730f..31035f77 100644 --- a/repmgr.c +++ b/repmgr.c @@ -359,7 +359,7 @@ do_standby_clone(void) { char *tblspc_dir; - strcpy(tblspc_dir, PQgetvalues(res, i, 0)); + strcpy(tblspc_dir, PQgetvalue(res, i, 0)); /* Check this directory could be used as a PGDATA dir */ switch (check_dir(tblspc_dir)) {