mirror of
https://github.com/jarun/nnn.git
synced 2025-03-18 20:39:45 +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)
|
if (len <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
/* Terminate the path read */
|
||||||
|
g_buf[len] = '\0';
|
||||||
nextpath = g_buf;
|
nextpath = g_buf;
|
||||||
} else if (op == 'l') {
|
} else if (op == 'l') {
|
||||||
/* Remove last list mode path, if any */
|
/* Remove last list mode path, if any */
|
||||||
|
|
Loading…
Add table
Reference in a new issue