Fix broken dir read from pipe

This commit is contained in:
Arun Prakash Jana 2020-05-06 19:03:29 +05:30
parent 4832fc5fe1
commit ce06bf15d6
No known key found for this signature in database
GPG key ID: A75979F35C080412

View file

@ -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 */