Skip to content

Commit

Permalink
Increase allowed path env size (#795)
Browse files Browse the repository at this point in the history
  • Loading branch information
hanefi committed Sep 2, 2021
1 parent 2ec279a commit ac0b3b1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/bin/pg_autoctl/cli_do_tmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
#include <stdio.h>
#include <stdlib.h>

#if defined(__linux__)
#include <linux/limits.h>
#endif

#include "postgres_fe.h"
#include "pqexpbuffer.h"
#include "snprintf.h"
Expand Down Expand Up @@ -440,7 +444,7 @@ cli_do_tmux_script_getopts(int argc, char **argv)
void
tmux_add_command(PQExpBuffer script, const char *fmt, ...)
{
char buffer[BUFSIZE] = { 0 };
char buffer[ARG_MAX] = { 0 };
va_list args;

va_start(args, fmt);
Expand Down Expand Up @@ -489,7 +493,7 @@ void
tmux_setenv(PQExpBuffer script,
const char *sessionName, const char *root, int firstPort)
{
char PATH[BUFSIZE] = { 0 };
char PATH[ARG_MAX] = { 0 };
char PG_CONFIG[MAXPGPATH] = { 0 };
char monitor_pguri[MAXCONNINFO] = { 0 };

Expand Down

0 comments on commit ac0b3b1

Please sign in to comment.