aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-23 16:39:08 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:20 -0400
commite412da2954afba9bd9e8f59156b661bebd3ecfb0 (patch)
tree0fad530c62f25f002cc638db712a0ca857028054
parentf9596aa201b6f574d851850096fdd071e957fa15 (diff)
downloadrneovim-e412da2954afba9bd9e8f59156b661bebd3ecfb0.tar.gz
rneovim-e412da2954afba9bd9e8f59156b661bebd3ecfb0.tar.bz2
rneovim-e412da2954afba9bd9e8f59156b661bebd3ecfb0.zip
Replace vim_strncpy calls: getchar.c
-rw-r--r--src/nvim/getchar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c
index b0e5a20506..57b0cf9a31 100644
--- a/src/nvim/getchar.c
+++ b/src/nvim/getchar.c
@@ -266,7 +266,7 @@ add_buff (
ssize_t len;
if (buf->bh_space >= (int)slen) {
len = STRLEN(buf->bh_curr->b_str);
- vim_strncpy(buf->bh_curr->b_str + len, s, (size_t)slen);
+ STRLCPY(buf->bh_curr->b_str + len, s, slen + 1);
buf->bh_space -= slen;
} else {
if (slen < MINIMAL_SIZE)
@@ -275,7 +275,7 @@ add_buff (
len = slen;
buffblock_T *p = xmalloc(sizeof(buffblock_T) + len);
buf->bh_space = (int)(len - slen);
- vim_strncpy(p->b_str, s, (size_t)slen);
+ STRLCPY(p->b_str, s, slen + 1);
p->b_next = buf->bh_curr->b_next;
buf->bh_curr->b_next = p;