Skip to content

Commit 333a186

Browse files
committed
Fix compiler warning
With some newer gcc versions (8 and 9) you get a -Wformat-overflow warning here. In PG11 and later this was already fixed. Since it's trivial, backport it to get the older branches building without warnings.
1 parent 886cf85 commit 333a186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/pgbench/pgbench.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -2857,7 +2857,7 @@ parseQuery(Command *cmd)
28572857
p = sql;
28582858
while ((p = strchr(p, ':')) != NULL)
28592859
{
2860-
char var[12];
2860+
char var[13];
28612861
char *name;
28622862
int eaten;
28632863

0 commit comments

Comments
 (0)