diff options
| author | 2020-05-06 19:03:29 +0530 | |
|---|---|---|
| committer | 2020-05-06 19:03:29 +0530 | |
| commit | ce06bf15d6e61b24c3cebe50b3ce9a9200364bda (patch) | |
| tree | b0673d966f7d14e623a3f0674f4c2d4c831192a6 /src | |
| parent | 4832fc5fe1297f1241310f2453b850c72743e1bd (diff) | |
| download | nnn-ce06bf15d6e61b24c3cebe50b3ce9a9200364bda.tar.gz | |
Fix broken dir read from pipe
Diffstat (limited to 'src')
| -rw-r--r-- | src/nnn.c | 2 |
1 files changed, 2 insertions, 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 */ |