diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-07-03 18:09:11 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-07-03 18:09:11 +0530 |
commit | 76d600b072cfacb8093f47e42f81c896e8c0aeda (patch) | |
tree | 54f236ac12554cec94c32b8fe8257de9af6b22b7 /nnn.c | |
parent | be8e9d5213db10deb02f41c4c43651f1767125b7 (diff) | |
download | nnn-76d600b072cfacb8093f47e42f81c896e8c0aeda.tar.gz |
Use the global buffer
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |