diff options
author | oni-link <knil.ino@gmail.com> | 2017-05-13 14:23:53 +0200 |
---|---|---|
committer | oni-link <knil.ino@gmail.com> | 2017-05-13 14:30:56 +0200 |
commit | 5886eaed7d3bc66b70212e8f5278f70e683bd456 (patch) | |
tree | 76e4a52273e7bedf87a42f710a589dc5dc9df63b /src | |
parent | ac47f8a50691e6ce99c54712e5c984db8b1f079e (diff) | |
download | rneovim-5886eaed7d3bc66b70212e8f5278f70e683bd456.tar.gz rneovim-5886eaed7d3bc66b70212e8f5278f70e683bd456.tar.bz2 rneovim-5886eaed7d3bc66b70212e8f5278f70e683bd456.zip |
if_cscope: Fix truncation of formated output
snprintf() has to truncate the string written to buffer buf for maximal
size_t value.
Increase buffer size to fix this.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/if_cscope.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/if_cscope.c b/src/nvim/if_cscope.c index e1c7df9175..f7706f5a0d 100644 --- a/src/nvim/if_cscope.c +++ b/src/nvim/if_cscope.c @@ -1972,7 +1972,7 @@ static void cs_release_csp(size_t i, int freefnpp) static int cs_reset(exarg_T *eap) { char **dblist = NULL, **pplist = NULL, **fllist = NULL; - char buf[20]; /* for snprintf " (#%zu)" */ + char buf[25]; // for snprintf " (#%zu)" if (csinfo_size == 0) return CSCOPE_SUCCESS; |