mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Use the global buffer
This commit is contained in:
parent
be8e9d5213
commit
76d600b072
2
nnn.c
2
nnn.c
|
@ -372,7 +372,7 @@ xmemrchr(const void *s, uchar ch, size_t n)
|
||||||
static char *
|
static char *
|
||||||
xdirname(const char *path)
|
xdirname(const char *path)
|
||||||
{
|
{
|
||||||
static char buf[PATH_MAX];
|
static char *buf = g_buf;
|
||||||
static char *last_slash;
|
static char *last_slash;
|
||||||
|
|
||||||
xstrlcpy(buf, path, PATH_MAX);
|
xstrlcpy(buf, path, PATH_MAX);
|
||||||
|
|
Loading…
Reference in a new issue