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:21:54 +0200 |
commit | 99493bcbe79dcc0c6efb59af25aca86baf649ab2 (patch) | |
tree | dfedd6658fd81020dab9a16664bf3e49da5501ad /src | |
parent | 5ce3b55520538ff9efeef4f36536e3c893413a30 (diff) |
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 163dcad137f..43841e8eb4b 100644 --- a/src/bin/pgbench/pgbench.c +++ b/src/bin/pgbench/pgbench.c @@ -2616,7 +2616,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; |