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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy