Thread: pgbouncer - pgbouncer: console: fix string format in datarow packet

pgbouncer - pgbouncer: console: fix string format in datarow packet

From
mkz@pgfoundry.org (User Mkz)
Date:
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)