Selaa lähdekoodia

NAME_MAX does not include NULL char

master
Arun Prakash Jana 7 vuotta sitten
vanhempi
commit
ca28580746
No known key found for this signature in database GPG Key ID: A75979F35C080412
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      nnn.c

+ 1
- 1
nnn.c Näytä tiedosto

@@ -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;


Loading…
Peruuta
Tallenna