Browse Source

Use the global buffer

master
Arun Prakash Jana 7 years ago
parent
commit
76d600b072
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c View File

@@ -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…
Cancel
Save