diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index a7fdd8ac94..fbb0c2bda4 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -4401,7 +4401,7 @@ threadRun(void *arg) /* open log file if requested */ if (use_log) { - char logpath[64]; + char logpath[MAXPGPATH]; char *prefix = logfile_prefix ? logfile_prefix : "pgbench_log"; if (thread->tid == 0)