diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2019-08-12 21:20:14 +0200 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2019-08-12 21:24:07 +0200 |
commit | 72bdf0f9e4418f49c76743b860fcc471539bc770 (patch) | |
tree | 0fcadbd6e53585951274b0a961adf9f5b773ea9f /src | |
parent | bae875d694d61b1627eaa6aafbcb2d5460f2dc9d (diff) | |
download | postgresql-72bdf0f9e4418f49c76743b860fcc471539bc770.tar.gz postgresql-72bdf0f9e4418f49c76743b860fcc471539bc770.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/pgbench/pgbench.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pgbench/pgbench.c b/src/bin/pgbench/pgbench.c index 60a5af8a9ba..b08121c905e 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; |