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

From: mkz(at)pgfoundry(dot)org (User Mkz)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgbouncer - pgbouncer: console: fix string format in datarow packet
Date: 2009-09-28 09:47:26
Message-ID: 20090928094726.51E1E107152E@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Dunstan 2009-09-28 17:30:05 pgsql: Convert a perl array to a postgres array when returned by Set
Previous Message Michael Meskes 2009-09-28 08:50:57 pgsql: Added some explanation about how the parser is generated, taken