postgres.git / summary / log / commit / refs

commit    99493bcbe79dcc0c6efb59af25aca86baf649ab2
Author:   Peter Eisentraut <peter@eisentraut.org>
Date:     Mon Aug 12 19:20:14 2019 +0000
First released in: 9.4.25, 9.5.20, 9.6.16, 10.11

    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 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; [parent: 5ce3b5552053]