diff options
author | Douglas Schneider <ds3@ualberta.ca> | 2014-05-26 07:53:04 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-13 18:08:21 -0400 |
commit | 4a8ac58596ba9eea8d1011276336a91f9227dd3a (patch) | |
tree | 60aa05a9fb886c96e4ac586092d5d0d7119667c6 | |
parent | a328bcfb47fd80286006e768881fb5f85a6496cb (diff) | |
download | rneovim-4a8ac58596ba9eea8d1011276336a91f9227dd3a.tar.gz rneovim-4a8ac58596ba9eea8d1011276336a91f9227dd3a.tar.bz2 rneovim-4a8ac58596ba9eea8d1011276336a91f9227dd3a.zip |
Replace vim_strncpy calls: ops.c
-rw-r--r-- | src/nvim/ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c index 46f70cf23e..4f1cd5d526 100644 --- a/src/nvim/ops.c +++ b/src/nvim/ops.c @@ -2222,7 +2222,7 @@ int op_change(oparg_T *oap) /* Subsequent calls to ml_get() flush the firstline data - take a * copy of the inserted text. */ ins_text = (char_u *) xmalloc((size_t)(ins_len + 1)); - vim_strncpy(ins_text, firstline + bd.textcol, (size_t)ins_len); + STRLCPY(ins_text, firstline + bd.textcol, ins_len + 1); for (linenr = oap->start.lnum + 1; linenr <= oap->end.lnum; linenr++) { block_prep(oap, &bd, linenr, TRUE); |