We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ec279a commit ac0b3b1Copy full SHA for ac0b3b1
1 file changed
src/bin/pg_autoctl/cli_do_tmux.c
@@ -17,6 +17,10 @@
17
#include <stdio.h>
18
#include <stdlib.h>
19
20
+#if defined(__linux__)
21
+#include <linux/limits.h>
22
+#endif
23
+
24
#include "postgres_fe.h"
25
#include "pqexpbuffer.h"
26
#include "snprintf.h"
@@ -440,7 +444,7 @@ cli_do_tmux_script_getopts(int argc, char **argv)
440
444
void
441
445
tmux_add_command(PQExpBuffer script, const char *fmt, ...)
442
446
{
443
- char buffer[BUFSIZE] = { 0 };
447
+ char buffer[ARG_MAX] = { 0 };
448
va_list args;
449
450
va_start(args, fmt);
@@ -489,7 +493,7 @@ void
489
493
tmux_setenv(PQExpBuffer script,
490
494
const char *sessionName, const char *root, int firstPort)
491
495
492
- char PATH[BUFSIZE] = { 0 };
496
+ char PATH[ARG_MAX] = { 0 };
497
char PG_CONFIG[MAXPGPATH] = { 0 };
498
char monitor_pguri[MAXCONNINFO] = { 0 };
499
0 commit comments