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

src/bin/psql/command.c

index fc02c66e1f44ecf5791d3809363cabc2ffa70fee..d130d44abaeb95f29e4714982f4cc574d92ee2d2 100644 (file)
@@ -2805,7 +2805,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)
    {