]> granicus.if.org Git - postgresql/commitdiff
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 533fcfdd23f375ad754de76f90020b69db46aa4a..26c54b366a1c59a147fc3ebe06f8e0d5dec7fc87 100644 (file)
@@ -3,7 +3,7 @@
  *
  * Copyright 2000 by PostgreSQL Global Development Group
  *
- * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.23 2000/07/09 21:30:19 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.24 2000/09/07 04:55:27 ishii Exp $
  */
 #include "postgres.h"
 #include "describe.h"
@@ -274,7 +274,7 @@ bool
 listAllDbs(bool desc)
 {
        PGresult   *res;
-       char            buf[512];
+       char            buf[1024];
        printQueryOpt myopt = pset.popt;
 
        strcpy(buf,