]> granicus.if.org Git - postgresql/commit
Avoid use of sprintf/snprintf in describe.c.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jul 2017 16:12:37 +0000 (12:12 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 27 Jul 2017 16:12:37 +0000 (12:12 -0400)
commit1e2f941db1671909ba3bde447c224bb64d1c002a
treee23f3206c913ca35d84b17955ee6f767c713136d
parentb884f629dcbac002a703ccaf0990d9467ae69a19
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
src/bin/psql/describe.c