This commit is contained in:
Ben Harris 2016-10-13 12:51:44 -04:00
parent 9567ab64f1
commit 1a26f625f8
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ void listdir (const char *name, int level) {
do {
if (entry->d_type == DT_DIR) {
// DT_LNK
char path[1024];
char path[4096];
int len = snprintf(path, sizeof(path)-1, "%s/%s", name, entry->d_name);
path[len] = 0;
if (strcmp(entry->d_name, ".") == 0 || strcmp(entry->d_name, "..") == 0)