From 76d600b072cfacb8093f47e42f81c896e8c0aeda Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 3 Jul 2017 18:09:11 +0530 Subject: [PATCH] Use the global buffer --- nnn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nnn.c b/nnn.c index d7c6df6e..845f1ab3 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);