]> granicus.if.org Git - postgresql/commitdiff
Fix compile breakage due to 0315dfa8f4afa8390383119330ca0bf241be4ad4.
authorRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 17:11:30 +0000 (12:11 -0500)
committerRobert Haas <rhaas@postgresql.org>
Fri, 4 Mar 2016 17:23:41 +0000 (12:23 -0500)
I wasn't careful enough when back-patching.

src/bin/psql/tab-complete.c

index 88afdb75118ebfffbab5174375109b03b96853d0..c4e36313f95fab6287cb5af1cb8f2dc6e142712d 100644 (file)
@@ -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)
                {