Merge pull request #2 from irixxxx/master

Update (30/10/24)
This commit is contained in:
Ray Sollium 2024-10-30 04:26:36 -03:00 committed by GitHub
commit b202518cd3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 61 additions and 16 deletions

2
menu.c
View file

@ -1152,7 +1152,7 @@ rescan:
} else {
strcpy(newdir, curr_path);
p = newdir + strlen(newdir) - 1;
while (*p == '/' && p >= newdir) *p-- = 0;
while (p >= newdir && *p == '/') *p-- = 0;
strcat(newdir, "/");
strcat(newdir, namelist[sel]->d_name);
}