pg_upgrade: fix off-by-one mistake in snprintf

Alvaro Herrera <alvherre@alvh.no-ip.org>

Commit: 9e26326ad6cd11ac32d11e6cbeb613443f361da6
Author: Alvaro Herrera <alvherre@alvh.no-ip.org>
Date: 2012-06-29T03:37:27Z
Releases: 9.3.0
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

PathChange+/−
contrib/pg_upgrade/controldata.c modified +1 −1