From 5886eaed7d3bc66b70212e8f5278f70e683bd456 Mon Sep 17 00:00:00 2001 From: oni-link Date: Sat, 13 May 2017 14:23:53 +0200 Subject: 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. --- src/nvim/if_cscope.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit