mirror of
https://github.com/neovim/neovim.git
synced 2024-12-24 21:25:04 -07:00
Replace vim_strncpy calls: regexp.c
This commit is contained in:
parent
4517eb80be
commit
e554ea2036
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user