From 3bbbf6daa9db5e81edb09754616d5db8834f03d2 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Wed, 6 Feb 2019 10:41:18 +0900 Subject: [PATCH] "recovery_file_path" is MAXPGPATH --- repmgr-action-standby.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index 020fdd8e..8e53d6f6 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -1116,7 +1116,7 @@ _do_create_recovery_conf(void) /* check if recovery.conf exists */ - maxpath_snprintf(recovery_file_path, "%s/%s", local_data_directory, RECOVERY_COMMAND_FILE); + snprintf(recovery_file_path, MAXPGPATH, "%s/%s", local_data_directory, RECOVERY_COMMAND_FILE); if (stat(recovery_file_path, &st) == -1) {