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