aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/eval.c
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2021-05-19 21:36:31 -0400
committerGitHub <noreply@github.com>2021-05-19 21:36:31 -0400
commit30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b (patch)
treed8df645e9f993a6903dda09fdf5d24c45680850b /src/nvim/eval.c
parent045e47ec5522b6449e849bc343697ab81ebd7814 (diff)
parent49ab1b91e7cccb4fc5edad6d2fa8c547fb38942b (diff)
downloadrneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.tar.gz
rneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.tar.bz2
rneovim-30befcdce47b4964b4d2a5aeb078ddec8e2fcc0b.zip
Merge pull request #14592 from janlazo/vim-8.2.2869
vim-patch:8.2.{2869,2871}
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r--src/nvim/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c
index 04a9abe41a..1c981d65e0 100644
--- a/src/nvim/eval.c
+++ b/src/nvim/eval.c
@@ -1619,7 +1619,7 @@ void list_hashtable_vars(hashtab_T *ht, const char *prefix, int empty,
char buf[IOSIZE];
// apply :filter /pat/ to variable name
- xstrlcpy(buf, prefix, IOSIZE - 1);
+ xstrlcpy(buf, prefix, IOSIZE);
xstrlcat(buf, (char *)di->di_key, IOSIZE);
if (message_filtered((char_u *)buf)) {
continue;