diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-23 14:34:47 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-01-23 15:49:37 +0100 |
commit | 7e799b6e910880d37e47c86ac46f12ce1c1c8a25 (patch) | |
tree | c226e6752ecbf97a2a42a42555b0fe8f79ec0439 /src/nvim/misc1.c | |
parent | 6c467f3f7e71029c6ef4b8a18d8900ff51eb1174 (diff) | |
download | rneovim-7e799b6e910880d37e47c86ac46f12ce1c1c8a25.tar.gz rneovim-7e799b6e910880d37e47c86ac46f12ce1c1c8a25.tar.bz2 rneovim-7e799b6e910880d37e47c86ac46f12ce1c1c8a25.zip |
refactor: Replace vim_strcat() with xstrlcat().
Diffstat (limited to 'src/nvim/misc1.c')
-rw-r--r-- | src/nvim/misc1.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/misc1.c b/src/nvim/misc1.c index 71aa6e83e5..ba26381e23 100644 --- a/src/nvim/misc1.c +++ b/src/nvim/misc1.c @@ -2507,8 +2507,9 @@ void msgmore(long n) vim_snprintf((char *)msg_buf, MSG_BUF_LEN, _("%" PRId64 " fewer lines"), (int64_t)pn); } - if (got_int) - vim_strcat(msg_buf, (char_u *)_(" (Interrupted)"), MSG_BUF_LEN); + if (got_int) { + xstrlcat((char *)msg_buf, _(" (Interrupted)"), MSG_BUF_LEN); + } if (msg(msg_buf)) { set_keep_msg(msg_buf, 0); keep_msg_more = TRUE; |