aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-13 21:55:11 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2020-04-13 21:55:11 +0530
commitcd1c458c96cdf5674c2fb793a16e57435ffe05b7 (patch)
tree7a73694798119f1346fb48cac333cd734651e2c5
parenta9436cfe7b196f27fd59074b82c1b10bf692f675 (diff)
downloadnnn-cd1c458c96cdf5674c2fb793a16e57435ffe05b7.tar.gz
Fix build break
-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;
}