aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDouglas Schneider <ds3@ualberta.ca>2014-05-26 20:03:41 -0600
committerJustin M. Keyes <justinkz@gmail.com>2014-06-13 18:08:21 -0400
commite554ea2036c37551698696d8b0e92e3f83404b15 (patch)
tree2e41f88f4a221ff52ce4f05f06d35ffd65863e76 /src
parent4517eb80bea2efb2b477a3a783815e5932172e80 (diff)
downloadrneovim-e554ea2036c37551698696d8b0e92e3f83404b15.tar.gz
rneovim-e554ea2036c37551698696d8b0e92e3f83404b15.tar.bz2
rneovim-e554ea2036c37551698696d8b0e92e3f83404b15.zip
Replace vim_strncpy calls: regexp.c
Diffstat (limited to 'src')
-rw-r--r--src/nvim/regexp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/regexp.c b/src/nvim/regexp.c
index b37fb1e39d..eab8c58b36 100644
--- a/src/nvim/regexp.c
+++ b/src/nvim/regexp.c
@@ -6772,7 +6772,7 @@ char_u *reg_submatch(int no)
len = submatch_mmatch->endpos[no].col
- submatch_mmatch->startpos[no].col;
if (round == 2)
- vim_strncpy(retval, s, len);
+ STRLCPY(retval, s, len + 1);
++len;
} else {
/* Multiple lines: take start line from start col, middle