mirror of
https://github.com/jarun/nnn.git
synced 2025-02-26 03:01:32 +00:00
Use the global buffer
This commit is contained in:
parent
be8e9d5213
commit
76d600b072
1 changed files with 1 additions and 1 deletions
2
nnn.c
2
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue