mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
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:
@@ -1972,7 +1972,7 @@ static void cs_release_csp(size_t i, int freefnpp)
|
|||||||
static int cs_reset(exarg_T *eap)
|
static int cs_reset(exarg_T *eap)
|
||||||
{
|
{
|
||||||
char **dblist = NULL, **pplist = NULL, **fllist = NULL;
|
char **dblist = NULL, **pplist = NULL, **fllist = NULL;
|
||||||
char buf[20]; /* for snprintf " (#%zu)" */
|
char buf[25]; // for snprintf " (#%zu)"
|
||||||
|
|
||||||
if (csinfo_size == 0)
|
if (csinfo_size == 0)
|
||||||
return CSCOPE_SUCCESS;
|
return CSCOPE_SUCCESS;
|
||||||
|
Reference in New Issue
Block a user