pgbouncer - pgbouncer: console: fix string format in datarow packet - Mailing list pgsql-committers

From mkz@pgfoundry.org (User Mkz)
Subject pgbouncer - pgbouncer: console: fix string format in datarow packet
Date
Msg-id 20090928094726.51E1E107152E@pgfoundry.org
Whole thread Raw
List pgsql-committers
Log Message:
-----------
console: fix string format in datarow packet

pgbouncer used to store strings with final '\0', which should not be there.

It was not noticed thus far as any C clients did not saw anything wrong.

Takeover code depends on them being zero-terminated, use a hack to make them so.

Modified Files:
--------------
    pgbouncer/src:
        pktbuf.c (r1.7 -> r1.8)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgbouncer/pgbouncer/src/pktbuf.c?r1=1.7&r2=1.8)
        proto.c (r1.18 -> r1.19)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/pgbouncer/pgbouncer/src/proto.c?r1=1.18&r2=1.19)

pgsql-committers by date:

Previous
From: meskes@postgresql.org (Michael Meskes)
Date:
Subject: pgsql: Added some explanation about how the parser is generated, taken
Next
From: adunstan@postgresql.org (Andrew Dunstan)
Date:
Subject: pgsql: Convert a perl array to a postgres array when returned by Set