aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Haas <rhaas@postgresql.org>2016-03-04 12:11:30 -0500
committerRobert Haas <rhaas@postgresql.org>2016-03-04 12:13:08 -0500
commit369c0b09080812943a2efcebe91cf4b271bc4f86 (patch)
tree5ed4a8742942cea58f447363d5ab598cdef1443f
parent7963731f94fd57293a651aa2a9a2e31dd11d6541 (diff)
downloadpostgresql-369c0b09080812943a2efcebe91cf4b271bc4f86.tar.gz
postgresql-369c0b09080812943a2efcebe91cf4b271bc4f86.zip
Fix compile breakage due to 0315dfa8f4afa8390383119330ca0bf241be4ad4.
I wasn't careful enough when back-patching.
-rw-r--r--src/bin/psql/tab-complete.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c
index 81f3df8e9d4..a789f2b4c33 100644
--- a/src/bin/psql/tab-complete.c
+++ b/src/bin/psql/tab-complete.c
@@ -4156,8 +4156,8 @@ _complete_from_query(int is_schema_query, const char *text, int state)
result = NULL;
/* Set up suitably-escaped copies of textual inputs */
- e_text = pg_malloc(string_length * 2 + 1);
- PQescapeString(e_text, text, string_length);
+ e_text = pg_malloc(byte_length * 2 + 1);
+ PQescapeString(e_text, text, byte_length);
if (completion_info_charp)
{