aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 013e48b..3233acb 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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);
if (!end) {
- dst[n - 1] = '\0';
+ dst[n - 1] = '\0'; // NOLINT
end = dst + n;
}