Fix psql crash. If MULTIBYTE is enabled, \l+ dumps core due to
authorTatsuo Ishii <ishii@postgresql.org>
Thu, 7 Sep 2000 04:55:27 +0000 (04:55 +0000)
committerTatsuo Ishii <ishii@postgresql.org>
Thu, 7 Sep 2000 04:55:27 +0000 (04:55 +0000)
SQL buffer in listAllDbs is just too small.

src/bin/psql/describe.c

index 7e6a672e7f98142a8e8e3077de824d8ef6f15389..6423faf0276bc0cab4c756553d5ce45e1b3b8741 100644 (file)
@@ -274,7 +274,7 @@ bool
 listAllDbs(bool desc)
 {
        PGresult   *res;
-       char            buf[512];
+       char            buf[1024];
        printQueryOpt myopt = pset.popt;
 
        strcpy(buf,