Skip to content

Commit 2105091

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/tab-complete.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -3719,8 +3719,8 @@ _complete_from_query(int is_schema_query, const char *text, int state)
37193719
result = NULL;
37203720

37213721
/* Set up suitably-escaped copies of textual inputs */
3722-
e_text = pg_malloc(string_length * 2 + 1);
3723-
PQescapeString(e_text, text, string_length);
3722+
e_text = pg_malloc(byte_length * 2 + 1);
3723+
PQescapeString(e_text, text, byte_length);
37243724

37253725
if (completion_info_charp)
37263726
{

0 commit comments

Comments
 (0)