Skip to content

Commit 369c0b0

Browse files
committed
Fix compile breakage due to 0315dfa.
I wasn't careful enough when back-patching.
1 parent 7963731 commit 369c0b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/tab-complete.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4156,8 +4156,8 @@ _complete_from_query(int is_schema_query, const char *text, int state)
41564156
result = NULL;
41574157

41584158
/* Set up suitably-escaped copies of textual inputs */
4159-
e_text = pg_malloc(string_length * 2 + 1);
4160-
PQescapeString(e_text, text, string_length);
4159+
e_text = pg_malloc(byte_length * 2 + 1);
4160+
PQescapeString(e_text, text, byte_length);
41614161

41624162
if (completion_info_charp)
41634163
{

0 commit comments

Comments
 (0)