pgsql: Use snprintf instead of sprintf in pg_regress.

From: Daniel Gustafsson <dgustafsson(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Use snprintf instead of sprintf in pg_regress.
Date: 2023-10-25 09:02:15
Message-ID: E1qvZmI-002Ey1-TD@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/849588.1698179694@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/8f0fd47fa33720dd09ad0ae74a8a583b9780e328

Modified Files
--------------
src/test/regress/pg_regress.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Daniel Gustafsson 2023-10-25 09:35:17 pgsql: doc: Fix link to catalog table
Previous Message David Rowley 2023-10-25 02:38:05 pgsql: Add missing include dir and references to libpq for MSVC build