Copy the correct length

This commit is contained in:
Arun Prakash Jana 2020-06-28 00:52:24 +05:30
parent 90cf84186a
commit 4178aaa98e
No known key found for this signature in database
GPG Key ID: A75979F35C080412
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ It runs smoothly on the Pi, [Termux](https://www.youtube.com/watch?v=AbaauM7gUJw
- Instantly load, sort, filter thousands of files
- Type to navigate with automatic dir selection
- Never lose context - start where you quit `nnn`
- Never lose context - start where you quit
- find/fd/grep/ripgrep/fzf from `nnn` and list in `nnn`
- Mount any cloud storage service in a few keypresses
- Select files from anywhere (not just a single dir)

View File

@ -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;