aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 72b0183..4443022 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -6433,7 +6433,7 @@ nochange:
*/
if (strcmp(path, plgpath) == 0) {
xstrsncpy(path, rundir, PATH_MAX);
- xstrsncpy(lastname, runfile, NAME_MAX);
+ xstrsncpy(lastname, runfile, NAME_MAX + 1);
rundir[0] = runfile[0] = '\0';
setdirwatch();
goto begin;