projects
/
users
/
rhaas
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffd9aaa
)
Fix psql crash. If MULTIBYTE is enabled, \l+ dumps core due to
author
Tatsuo Ishii
<
[email protected]
>
Thu, 7 Sep 2000 04:55:27 +0000
(
04:55
+0000)
committer
Tatsuo Ishii
<
[email protected]
>
Thu, 7 Sep 2000 04:55:27 +0000
(
04:55
+0000)
SQL buffer in listAllDbs is just too small.
src/bin/psql/describe.c
patch
|
blob
|
blame
|
history
diff --git
a/src/bin/psql/describe.c
b/src/bin/psql/describe.c
index 533fcfdd23f375ad754de76f90020b69db46aa4a..26c54b366a1c59a147fc3ebe06f8e0d5dec7fc87 100644
(file)
--- 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.2
3 2000/07/09 21:30:19 petere
Exp $
+ * $Header: /cvsroot/pgsql/src/bin/psql/describe.c,v 1.2
4 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,