From 30f5cd6c30477eb8ebb17d05f64d1040dbf0fd27 Mon Sep 17 00:00:00 2001 From: Douglas Schneider Date: Mon, 26 May 2014 19:27:07 -0600 Subject: Replace vim_strncpy calls: option.c --- src/nvim/option.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/nvim/option.c b/src/nvim/option.c index 6b820ea1ba..5690d2c61f 100644 --- a/src/nvim/option.c +++ b/src/nvim/option.c @@ -3209,7 +3209,7 @@ skip: } if (errmsg != NULL) { - vim_strncpy(IObuff, (char_u *)_(errmsg), IOSIZE - 1); + STRLCPY(IObuff, _(errmsg), IOSIZE); i = (int)STRLEN(IObuff) + 2; if (i + (arg - startarg) < IOSIZE) { /* append the argument with the error */ @@ -7480,7 +7480,7 @@ option_value2string ( else if ((char_u **)opp->var == &p_pt) str2specialbuf(p_pt, NameBuff, MAXPATHL); else - vim_strncpy(NameBuff, varp, MAXPATHL - 1); + STRLCPY(NameBuff, varp, MAXPATHL); } } -- cgit