From: Peter Eisentraut Date: Mon, 12 Aug 2019 19:20:14 +0000 (+0200) Subject: Fix compiler warning X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f02bd634a68c732b4a6eb7cae572d35835a50518;p=postgresql 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. --- diff --git a/contrib/pgbench/pgbench.c b/contrib/pgbench/pgbench.c index ee2df8fb33..21eed7acf3 100644 --- a/contrib/pgbench/pgbench.c +++ b/contrib/pgbench/pgbench.c @@ -1948,7 +1948,7 @@ parseQuery(Command *cmd, const char *raw_sql) p = sql; while ((p = strchr(p, ':')) != NULL) { - char var[12]; + char var[13]; char *name; int eaten;