Avoid use of sprintf/snprintf in describe.c.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 1e2f941db1671909ba3bde447c224bb64d1c002a
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-07-27T16:12:37Z
Releases: 10.0
Avoid use of sprintf/snprintf in describe.c.

Most places were already using the PQExpBuffer library for constructing
variable-length strings; bring the two stragglers into line.
describeOneTSParser was living particularly dangerously since it wasn't
even using snprintf().

Daniel Gustafsson

Discussion: https://postgr.es/m/3641F19B-336A-431A-86CE-A80562505C5E@yesql.se

Files

PathChange+/−
src/bin/psql/describe.c modified +16 −10

Discussion