Skip to content

Commit 4fc8465

Browse files
committed
Fix psql crash. If MULTIBYTE is enabled, \l+ dumps core due to
SQL buffer in listAllDbs is just too small.
1 parent dae17e5 commit 4fc8465

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/describe.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21 2000/04/16 20:04:51 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.21.2.1 2000/09/07 04:53:32 ishii Exp $
77
*/
88
#include "postgres.h"
99
#include "describe.h"
@@ -277,7 +277,7 @@ bool
277277
listAllDbs(bool desc)
278278
{
279279
PGresult *res;
280-
char buf[512];
280+
char buf[1024];
281281
printQueryOpt myopt = pset.popt;
282282

283283
strcpy(buf,

0 commit comments

Comments
 (0)