pg_upgrade: fix off-by-one mistake in snprintf
Alvaro Herrera <alvherre@alvh.no-ip.org>
pg_upgrade: fix off-by-one mistake in snprintf snprintf counts trailing NUL towards the char limit. Failing to account for that was causing an invalid value to be passed to pg_resetxlog -l, aborting the upgrade process.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/pg_upgrade/controldata.c | modified | +1 −1 |