Use snprintf instead of sprintf in pg_regress.
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 25 Oct 2023 08:53:11 +0000 (10:53 +0200)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Wed, 25 Oct 2023 08:53:11 +0000 (10:53 +0200)
commit8f0fd47fa33720dd09ad0ae74a8a583b9780e328
tree6f82500a73420214300740f694c970e8628edb6b
parent673a17e31202cc47a9309e9b0b9b5fbec36080d3
Use snprintf instead of sprintf in pg_regress.

To avoid static analyzers sounding the alarm, move to using snprintf
instead of sprintf. This was an oversight in 66d6086cbcbfc8dee789a6.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/849588.1698179694@sss.pgh.pa.us
src/test/regress/pg_regress.c