aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTatsuo Ishii <ishii@postgresql.org>2000-09-07 04:55:27 +0000
committerTatsuo Ishii <ishii@postgresql.org>2000-09-07 04:55:27 +0000
commitc18c321365117cd60fe42f562838fe126317bf52 (patch)
tree9b5b651a872c192ea7054a341ead70b60dd869a9
parentffd9aaa0a92842f00fd5107e3325876beae83eed (diff)
downloadpostgresql-c18c321365117cd60fe42f562838fe126317bf52.tar.gz
postgresql-c18c321365117cd60fe42f562838fe126317bf52.zip
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 533fcfdd23f..26c54b366a1 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.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,