Widen buffer for headers in psql's \watch command.
authorTom Lane <[email protected]>
Wed, 15 Jun 2016 23:35:39 +0000 (19:35 -0400)
committerTom Lane <[email protected]>
Wed, 15 Jun 2016 23:36:01 +0000 (19:36 -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[email protected]>

src/bin/psql/command.c

index 1c9d2d326b861629b70eaee68ca06e920dfda989..6a3d941e8021cd7256e96b99777e19f13483cc79 100644 (file)
@@ -2615,7 +2615,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)
        {