From: Robert Haas Date: Fri, 4 Mar 2016 17:11:30 +0000 (-0500) Subject: Fix compile breakage due to 0315dfa8f4afa8390383119330ca0bf241be4ad4. X-Git-Tag: REL9_1_21~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58c1af4fd0952a9ac45b06824dcaee6f5fbdd737;p=thirdparty%2Fpostgresql.git Fix compile breakage due to 0315dfa8f4afa8390383119330ca0bf241be4ad4. I wasn't careful enough when back-patching. --- diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 88afdb75118..c4e36313f95 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3063,8 +3063,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) {