Skip to content

Commit

Permalink
fix sprintf extra param
Browse files Browse the repository at this point in the history
  • Loading branch information
Cédric Villemain authored and Jaime Casanova committed Mar 9, 2011
1 parent 6050da3 commit 0b69069
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions repmgr.c
Expand Up @@ -1114,6 +1114,7 @@ do_standby_promote(void)
*/
log_notice(_("%s: restarting server using pg_ctl\n"), progname);
maxlen_snprintf(script, "pg_ctl -D %s -w -m fast restart", data_dir);

r = system(script);
if (r != 0)
{
Expand Down

0 comments on commit 0b69069

Please sign in to comment.