From e44c048ae2c6c805d348bf98d53d793b86e1c549 Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 28 Mar 2019 10:11:56 +0900 Subject: [PATCH] Update code comment --- repmgr-action-standby.c | 1 + 1 file changed, 1 insertion(+) diff --git a/repmgr-action-standby.c b/repmgr-action-standby.c index f8c73c11..4409aef4 100644 --- a/repmgr-action-standby.c +++ b/repmgr-action-standby.c @@ -4250,6 +4250,7 @@ do_standby_switchover(void) */ if (runtime_options.dry_run == true) { + /* we use a buffer here as it will be modified by string_remove_trailing_newlines() */ char shutdown_command[MAXLEN] = ""; strncpy(shutdown_command, command_output.data, MAXLEN);