diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-23 01:30:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-23 01:30:50 +0100 |
commit | d4b931deacf61528e902623d38d0f4d314bc1839 (patch) | |
tree | 2bf212d045d9c7c729839a1f94503a3f81fa1495 /src/nvim/fileio.c | |
parent | 7255f00818af5e8e552e9beac2c9f5ccb86de664 (diff) | |
parent | 5ac5c7971c2570746b5226e9e75067688566b7f0 (diff) | |
download | rneovim-d4b931deacf61528e902623d38d0f4d314bc1839.tar.gz rneovim-d4b931deacf61528e902623d38d0f4d314bc1839.tar.bz2 rneovim-d4b931deacf61528e902623d38d0f4d314bc1839.zip |
Merge #5995 from ZyX-I/coverity-fixes
coverity fixes
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 12206c1680..71af89b70d 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -4982,8 +4982,8 @@ buf_check_timestamp ( set_vim_var_string(VV_WARNINGMSG, tbuf, -1); if (can_reload) { if (*mesg2 != NUL) { - strncat(tbuf, "\n", tbuf_len); - strncat(tbuf, mesg2, tbuf_len); + strncat(tbuf, "\n", tbuf_len - 1); + strncat(tbuf, mesg2, tbuf_len - 1); } if (do_dialog(VIM_WARNING, (char_u *) _("Warning"), (char_u *) tbuf, (char_u *) _("&OK\n&Load File"), 1, NULL, true) == 2) { |