Replace vim_strncpy calls: regexp.c

This commit is contained in:
Douglas Schneider 2014-05-26 20:03:41 -06:00 committed by Justin M. Keyes
parent 4517eb80be
commit e554ea2036

View File

@ -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