aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nnn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nnn.c b/nnn.c
index d7c6df6..845f1ab 100644
--- a/nnn.c
+++ b/nnn.c
@@ -372,7 +372,7 @@ xmemrchr(const void *s, uchar ch, size_t n)
static char *
xdirname(const char *path)
{
- static char buf[PATH_MAX];
+ static char *buf = g_buf;
static char *last_slash;
xstrlcpy(buf, path, PATH_MAX);