diff options
| author | 2020-06-28 00:52:24 +0530 | |
|---|---|---|
| committer | 2020-06-28 00:52:24 +0530 | |
| commit | 4178aaa98ef317bad99b04c6e8ee64428ac2498a (patch) | |
| tree | 9740ae03d24660728e43358b027c7c26202f913c /src | |
| parent | 90cf84186a37779c69d35aab9c8f29ed381ce214 (diff) | |
| download | nnn-4178aaa98ef317bad99b04c6e8ee64428ac2498a.tar.gz | |
Copy the correct length
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |