aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-26 19:27:07 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:21 -0400
commit30f5cd6c30477eb8ebb17d05f64d1040dbf0fd27 (patch)
tree1774ae6274f14df655b830e8527b4f47dee9f544
parent2179a03111bddaddabba3520f1fe806c4c72689a (diff)
downloadrneovim-30f5cd6c30477eb8ebb17d05f64d1040dbf0fd27.tar.gz
rneovim-30f5cd6c30477eb8ebb17d05f64d1040dbf0fd27.tar.bz2
rneovim-30f5cd6c30477eb8ebb17d05f64d1040dbf0fd27.zip
Replace vim_strncpy calls: option.c
-rw-r--r--src/nvim/option.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}