Skip to content

Commit f02bd63

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 b7c1c33 commit f02bd63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/pgbench/pgbench.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1948,7 +1948,7 @@ parseQuery(Command *cmd, const char *raw_sql)
19481948
p = sql;
19491949
while ((p = strchr(p, ':')) != NULL)
19501950
{
1951-
char var[12];
1951+
char var[13];
19521952
char *name;
19531953
int eaten;
19541954

0 commit comments

Comments
 (0)