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.
This commit is contained in:
oni-link
2017-05-13 14:23:53 +02:00
parent ac47f8a506
commit 5886eaed7d

View File

@@ -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;