mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +00:00
Replace vim_strncpy calls: fold.c
This commit is contained in:

committed by
Justin M. Keyes

parent
a501d7a940
commit
4517eb80be
@@ -1599,7 +1599,7 @@ static void foldAddMarker(linenr_T lnum, char_u *marker, int markerlen)
|
||||
newline = xmalloc(line_len + markerlen + STRLEN(cms) + 1);
|
||||
STRCPY(newline, line);
|
||||
if (p == NULL)
|
||||
vim_strncpy(newline + line_len, marker, markerlen);
|
||||
STRLCPY(newline + line_len, marker, markerlen + 1);
|
||||
else {
|
||||
STRCPY(newline + line_len, cms);
|
||||
STRNCPY(newline + line_len + (p - cms), marker, markerlen);
|
||||
|
Reference in New Issue
Block a user