Przeglądaj źródła

NAME_MAX does not include NULL char

master
Arun Prakash Jana 7 lat temu
rodzic
commit
ca28580746
Nie znaleziono w bazie danych klucza dla tego podpisu ID klucza GPG: A75979F35C080412
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c Wyświetl plik

@@ -1855,7 +1855,7 @@ dentfill(char *path, struct entry **dents,
}

dentp = &(*dents)[n];
xstrlcpy(pnamebuf[n].pname, namep, NAME_MAX);
xstrlcpy(pnamebuf[n].pname, namep, NAME_MAX + 1);
dentp->name = pnamebuf[n].pname;

dentp->mode = sb.st_mode;


Ładowanie…
Anuluj
Zapisz