mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 01:46:29 +00:00
coverity/135578: Memory - illegal accesses
Harmless issue, but doesn't hurt to satisfy coverity here.
This commit is contained in:
@@ -3294,7 +3294,7 @@ static void syn_cmd_onoff(exarg_T *eap, char *name)
|
||||
eap->nextcmd = check_nextcmd(eap->arg);
|
||||
if (!eap->skip) {
|
||||
char buf[100];
|
||||
strncpy(buf, "so ", 3);
|
||||
strncpy(buf, "so ", 4);
|
||||
vim_snprintf(buf + 3, sizeof(buf) - 3, SYNTAX_FNAME, name);
|
||||
do_cmdline_cmd(buf);
|
||||
}
|
||||
|
Reference in New Issue
Block a user