1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-22 23:02:54 +03:00

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.
This commit is contained in:
Peter Eisentraut 2019-08-12 21:20:14 +02:00
parent b7c1c33d90
commit f02bd634a6

View File

@ -1948,7 +1948,7 @@ parseQuery(Command *cmd, const char *raw_sql)
p = sql; p = sql;
while ((p = strchr(p, ':')) != NULL) while ((p = strchr(p, ':')) != NULL)
{ {
char var[12]; char var[13];
char *name; char *name;
int eaten; int eaten;