aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nnn.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 0bafe23..17199cd 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -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 */