mirror of
https://github.com/jarun/nnn.git
synced 2025-03-22 06:12:27 +00:00
Fix broken dir read from pipe
This commit is contained in:
parent
4832fc5fe1
commit
ce06bf15d6
1 changed files with 2 additions and 0 deletions
|
@ -4273,6 +4273,8 @@ static void readpipe(int fd, char **path, char **lastname, char **lastdir)
|
|||
if (len <= 0)
|
||||
return;
|
||||
|
||||
/* Terminate the path read */
|
||||
g_buf[len] = '\0';
|
||||
nextpath = g_buf;
|
||||
} else if (op == 'l') {
|
||||
/* Remove last list mode path, if any */
|
||||
|
|
Loading…
Add table
Reference in a new issue