diff options
Diffstat (limited to 'src/nvim/fold.c')
-rw-r--r-- | src/nvim/fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/fold.c b/src/nvim/fold.c index 8b773b2eee..4ac96cdfd2 100644 --- a/src/nvim/fold.c +++ b/src/nvim/fold.c @@ -1615,7 +1615,7 @@ static void foldAddMarker(buf_T *buf, pos_T pos, const char *marker, size_t mark STRCPY(newline, line); // Append the marker to the end of the line if (p == NULL || line_is_comment) { - STRLCPY(newline + line_len, marker, markerlen + 1); + xstrlcpy(newline + line_len, marker, markerlen + 1); added = markerlen; } else { STRCPY(newline + line_len, cms); |