aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/bin/psql/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index d8c477aab04..6504959e358 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -2603,7 +2603,7 @@ pset_bool_string(bool val)
static char *
pset_quoted_string(const char *str)
{
- char *ret = pg_malloc(strlen(str) * 2 + 2);
+ char *ret = pg_malloc(strlen(str) * 2 + 3);
char *r = ret;
*r++ = '\'';