mirror of
https://github.com/neovim/neovim.git
synced 2025-10-15 22:36:09 +00:00
Replace vim_strncpy calls: regexp.c
This commit is contained in:

committed by
Justin M. Keyes

parent
4517eb80be
commit
e554ea2036
@@ -6772,7 +6772,7 @@ char_u *reg_submatch(int no)
|
|||||||
len = submatch_mmatch->endpos[no].col
|
len = submatch_mmatch->endpos[no].col
|
||||||
- submatch_mmatch->startpos[no].col;
|
- submatch_mmatch->startpos[no].col;
|
||||||
if (round == 2)
|
if (round == 2)
|
||||||
vim_strncpy(retval, s, len);
|
STRLCPY(retval, s, len + 1);
|
||||||
++len;
|
++len;
|
||||||
} else {
|
} else {
|
||||||
/* Multiple lines: take start line from start col, middle
|
/* Multiple lines: take start line from start col, middle
|
||||||
|
Reference in New Issue
Block a user