From 4660c4ea13c9181853fdb742c5b9032b3e8c28ea Mon Sep 17 00:00:00 2001 From: Jaime Casanova Date: Thu, 30 Sep 2010 12:15:43 -0500 Subject: [PATCH] There was a segfault because of the strcpy (seems rather obvious now) Reported by: Cedric Villemain Fixed by me --- repmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))