Skip to content

Commit

Permalink
Merge pull request #8 from earlephilhower/paths
Browse files Browse the repository at this point in the history
Fix path creation to allow >32b total depth
  • Loading branch information
earlephilhower committed Aug 16, 2020
2 parents eb89cfe + 0beba0f commit 295fe9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ int addFile(char* name, const char* path) {
struct stat sbuf;

// Make any subdirs required to place this file
char pathStr[LFS_NAME_MAX+1];
char pathStr[PATH_MAX+1];
strcpy(pathStr, name); // Already know path length < LFS_NAME_MAX
// Make dirs up to the final fnamepart
char *ptr = strchr(pathStr, '/');
Expand Down

0 comments on commit 295fe9b

Please sign in to comment.