diff options
author | Robert Haas <rhaas@postgresql.org> | 2016-03-04 12:11:30 -0500 |
---|---|---|
committer | Robert Haas <rhaas@postgresql.org> | 2016-03-04 12:13:32 -0500 |
commit | 21050917d6c6f52ed3b06f0ee3fc210caaf42e8c (patch) | |
tree | 00d26688261057b18b9ce06b400ac3b15d8610d3 /src | |
parent | 8de488d009e6280f4b80b634ee0fe79b6b34689e (diff) | |
download | postgresql-21050917d6c6f52ed3b06f0ee3fc210caaf42e8c.tar.gz postgresql-21050917d6c6f52ed3b06f0ee3fc210caaf42e8c.zip |
Fix compile breakage due to 0315dfa8f4afa8390383119330ca0bf241be4ad4.
I wasn't careful enough when back-patching.
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/psql/tab-complete.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/tab-complete.c b/src/bin/psql/tab-complete.c index 79fec81e223..69d94fc6b98 100644 --- a/src/bin/psql/tab-complete.c +++ b/src/bin/psql/tab-complete.c @@ -3719,8 +3719,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) { |