aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-03 18:09:11 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-03 18:09:11 +0530
commit76d600b072cfacb8093f47e42f81c896e8c0aeda (patch)
tree54f236ac12554cec94c32b8fe8257de9af6b22b7 /nnn.c
parentbe8e9d5213db10deb02f41c4c43651f1767125b7 (diff)
downloadnnn-76d600b072cfacb8093f47e42f81c896e8c0aeda.tar.gz
Use the global buffer
Diffstat (limited to 'nnn.c')
-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);