diff options
author | Douglas Schneider <ds3@ualberta.ca> | 2014-05-26 20:03:41 -0600 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-06-13 18:08:21 -0400 |
commit | e554ea2036c37551698696d8b0e92e3f83404b15 (patch) | |
tree | 2e41f88f4a221ff52ce4f05f06d35ffd65863e76 | |
parent | 4517eb80bea2efb2b477a3a783815e5932172e80 (diff) | |
download | rneovim-e554ea2036c37551698696d8b0e92e3f83404b15.tar.gz rneovim-e554ea2036c37551698696d8b0e92e3f83404b15.tar.bz2 rneovim-e554ea2036c37551698696d8b0e92e3f83404b15.zip |
Replace vim_strncpy calls: regexp.c
-rw-r--r-- | src/nvim/regexp.c | 2 |
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 |