diff --git a/repmgr.c b/repmgr.c index 0d290c13..8919b2db 100644 --- a/repmgr.c +++ b/repmgr.c @@ -240,7 +240,7 @@ do_standby_clone(void) const char *last_wal_segment = NULL; if (dest_dir == NULL) - strcpy(dest_dir, "."); + dest_dir = "."; /* Check this directory could be used as a PGDATA dir */ switch (check_dir(dest_dir))