aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/nnn.c b/nnn.c
index 6ac1d78..98371d1 100644
--- a/nnn.c
+++ b/nnn.c
@@ -1303,9 +1303,9 @@ END:
settimeout();
DPRINTF_S(buf);
- wcstombs(g_buf, buf, NAME_MAX);
+ wcstombs(g_buf + ((NAME_MAX + 1) << 4), buf, NAME_MAX);
clearprompt();
- return g_buf;
+ return g_buf + ((NAME_MAX + 1) << 4);
}
/*