From 72bdf0f9e4418f49c76743b860fcc471539bc770 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 12 Aug 2019 21:20:14 +0200 Subject: [PATCH] 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. --- src/bin/pgbench/pgbench.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 60a5af8a9b..b08121c905 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -2231,7 +2231,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; -- 2.40.0