]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
Widen buffer for headers in psql's \watch command.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Jun 2016 23:35:39 +0000 (19:35 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 15 Jun 2016 23:35:39 +0000 (19:35 -0400)
This is to make sure there's enough room for translated versions of
the message.  HEAD's already addressed this issue, but back-patch a
simple increase in the array size.

Discussion: <20160612145532.GA22965@postgresql.kr>

src/bin/psql/command.c

index 4488d5913bfc7213ea96cf3d7a38155289627b4a..07d3e6998e5e8de2000dc46ef295d288ee7c8880 100644 (file)
@@ -2943,7 +2943,7 @@ static bool
 do_watch(PQExpBuffer query_buf, long sleep)
 {
        printQueryOpt myopt = pset.popt;
-       char            title[50];
+       char            title[256];
 
        if (!query_buf || query_buf->len <= 0)
        {