pgsql: Fix overflow check in StringInfo; add missing casts

Lists: pgsql-committers
From: Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix overflow check in StringInfo; add missing casts
Date: 2017-01-10 14:42:56
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-committers

Fix overflow check in StringInfo; add missing casts

A few thinkos I introduced in fa2fa9955280. Also, amend a similarly
broken comment.

Report by Daniel Vérité.
Authors: Daniel Vérité, Álvaro Herrera
Discussion: https://postgr.es/m/[email protected]

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/42f50cb8fa9848bbbc6776bcea03293a6b28b2d4

Modified Files
--------------
src/backend/lib/stringinfo.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)