aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-22 21:42:04 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:21 -0400
commit03b25f782b694793110814a6efc778108b633f04 (patch)
tree94b391da1e2d4d2041ee3d9aee649bb71bd8ed6d /src
parent9f4e10b62e6fa1e2ff9dcbdaaa805e2015477f72 (diff)
downloadrneovim-03b25f782b694793110814a6efc778108b633f04.tar.gz
rneovim-03b25f782b694793110814a6efc778108b633f04.tar.bz2
rneovim-03b25f782b694793110814a6efc778108b633f04.zip
Replace vim_strncpy calls: ex_docmd.c
Diffstat (limited to 'src')
-rw-r--r--src/nvim/ex_docmd.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/nvim/ex_docmd.c b/src/nvim/ex_docmd.c
index 31243a12c4..e39eac993c 100644
--- a/src/nvim/ex_docmd.c
+++ b/src/nvim/ex_docmd.c
@@ -4095,9 +4095,8 @@ check_more (
char_u buff[DIALOG_MSG_SIZE];
if (n == 1)
- vim_strncpy(buff,
- (char_u *)_("1 more file to edit. Quit anyway?"),
- DIALOG_MSG_SIZE - 1);
+ STRLCPY(buff, _("1 more file to edit. Quit anyway?"),
+ DIALOG_MSG_SIZE);
else
vim_snprintf((char *)buff, DIALOG_MSG_SIZE,
_("%d more files to edit. Quit anyway?"), n);
@@ -5865,7 +5864,7 @@ static void ex_tabs(exarg_T *eap)
msg_putchar(bufIsChanged(wp->w_buffer) ? '+' : ' ');
msg_putchar(' ');
if (buf_spname(wp->w_buffer) != NULL)
- vim_strncpy(IObuff, buf_spname(wp->w_buffer), IOSIZE - 1);
+ STRLCPY(IObuff, buf_spname(wp->w_buffer), IOSIZE);
else
home_replace(wp->w_buffer, wp->w_buffer->b_fname,
IObuff, IOSIZE, TRUE);