From: Peter Eisentraut Date: Mon, 12 Aug 2019 19:20:14 +0000 (+0200) Subject: Fix compiler warning X-Git-Tag: REL_10_11~117 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=333a186dc52e32ce250c9d62d9dbaecbd359d651;p=thirdparty%2Fpostgresql.git 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/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 0c1b01ecdae..341dc8bba9b 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -2857,7 +2857,7 @@ parseQuery(Command *cmd) p = sql; while ((p = strchr(p, ':')) != NULL) { - char var[12]; + char var[13]; char *name; int eaten;