pgsql: Avoid use of sprintf/snprintf in describe.c.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Avoid use of sprintf/snprintf in describe.c.
Date: 2017-07-27 17:31:08
Message-ID: E1damcu-0004Um-GR@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1e2f941db1671909ba3bde447c224bb64d1c002a

Modified Files
--------------
src/bin/psql/describe.c | 26 ++++++++++++++++----------
1 file changed, 16 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2017-07-27 18:13:32 pgsql: Fix psql tab completion for CREATE USER MAPPING.
Previous Message Tom Lane 2017-07-27 15:10:48 pgsql: Fix very minor memory leaks in psql's command.c.