diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2016-02-16 04:25:59 -0500 |
|---|---|---|
| committer | Justin M. Keyes <justinkz@gmail.com> | 2016-02-16 04:25:59 -0500 |
| commit | 9648bf795a849a53ac58c8e34c68e1b81b2096f4 (patch) | |
| tree | 8808294c8867f07358f307cbfedeaf77fcda0082 /src/nvim/syntax.c | |
| parent | 5af9ae9e6064eabe98ec94896211af00e86632b5 (diff) | |
| download | rneovim-9648bf795a849a53ac58c8e34c68e1b81b2096f4.tar.gz rneovim-9648bf795a849a53ac58c8e34c68e1b81b2096f4.tar.bz2 rneovim-9648bf795a849a53ac58c8e34c68e1b81b2096f4.zip | |
coverity/135578: Memory - illegal accesses
Harmless issue, but doesn't hurt to satisfy coverity here.
Diffstat (limited to 'src/nvim/syntax.c')
| -rw-r--r-- | src/nvim/syntax.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c index b7d8a19de9..478fa973a1 100644 --- a/src/nvim/syntax.c +++ b/src/nvim/syntax.c @@ -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); } |
