This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
nnn
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
NAME_MAX does not include NULL char
master
Arun Prakash Jana
7 years ago
parent
3da5f5d130
commit
ca28580746
No known key found for this signature in database
GPG Key ID:
A75979F35C080412
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
nnn.c
+ 1
- 1
nnn.c
View File
@@ -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;
Write
Preview
Loading…
Cancel
Save