Sfoglia il codice sorgente

Use the global buffer

master
Arun Prakash Jana 8 anni fa
parent
commit
76d600b072
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c Vedi 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…
Annulla
Salva