Skip to content

Commit fbee403

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

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
@@ -3552,8 +3552,8 @@ _complete_from_query(int is_schema_query, const char *text, int state)
35523552
result = NULL;
35533553

35543554
/* Set up suitably-escaped copies of textual inputs */
3555-
e_text = pg_malloc(string_length * 2 + 1);
3556-
PQescapeString(e_text, text, string_length);
3555+
e_text = pg_malloc(byte_length * 2 + 1);
3556+
PQescapeString(e_text, text, byte_length);
35573557

35583558
if (completion_info_charp)
35593559
{

0 commit comments

Comments
 (0)