mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Fix build break
This commit is contained in:
parent
a9436cfe7b
commit
cd1c458c96
|
@ -936,7 +936,7 @@ static size_t xstrsncpy(char *restrict dst, const char *restrict src, size_t n)
|
||||||
char *end = memccpy(dst, src, '\0', n);
|
char *end = memccpy(dst, src, '\0', n);
|
||||||
|
|
||||||
if (!end) {
|
if (!end) {
|
||||||
dst[n - 1] = '\0';
|
dst[n - 1] = '\0'; // NOLINT
|
||||||
end = dst + n;
|
end = dst + n;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue