summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-09-07 04:53:32 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-09-07 04:53:32 +0000
commit4fc84653989b69182fcc0cbc518b24b6147bc4e6 (patch)
tree9ebd6140def0d328d4e639a96bffce1e9ca6e41d
parentdae17e5ad1a138ca4a66a177ace00d6d0de9e50a (diff)
Fix psql crash. If MULTIBYTE is enabled, \l+ dumps core due to
SQL buffer in listAllDbs is just too small.
-rw-r--r--src/bin/psql/describe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/describe.c b/src/bin/psql/describe.c
index a9285b7bb49..50fdc4116d9 100644
--- a/src/bin/psql/describe.c
+++ b/src/bin/psql/describe.c
@@ -3,7 +3,7 @@
*
* Copyright 2000 by PostgreSQL Global Development Group
*
- * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21 2000/04/16 20:04:51 petere Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21.2.1 2000/09/07 04:53:32 ishii Exp $
*/
#include "postgres.h"
#include "describe.h"
@@ -277,7 +277,7 @@ bool
listAllDbs(bool desc)
{
PGresult *res;
- char buf[512];
+ char buf[1024];
printQueryOpt myopt = pset.popt;
strcpy(buf,