aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index 9686fe9..691902b 100644
--- a/nnn.c
+++ b/nnn.c
@@ -2852,7 +2852,8 @@ nochange:
g_buf[r + 1] = '\0';
spawn(copier, g_buf, NULL, NULL, F_NONE);
- printmsg(g_buf);
+ g_buf[r] = '\0';
+ printmsg(g_buf + 1);
} else {
mkpath(path, dents[cur].name, newpath, PATH_MAX);
spawn(copier, newpath, NULL, NULL, F_NONE);