Merge branch 'raysan5:master' into master

This commit is contained in:
Jon Daniel 2025-06-22 20:23:03 +02:00 committed by GitHub
commit 8d23dd1242
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3757,7 +3757,8 @@ static void ScanDirectoryFiles(const char *basePath, FilePathList *files, const
// Scan all files and directories recursively from a base path
static void ScanDirectoryFilesRecursively(const char *basePath, FilePathList *files, const char *filter)
{
static char path[MAX_FILEPATH_LENGTH] = { 0 };
// WARNING: Path can not be static or it will be reused between recursive function calls!
char path[MAX_FILEPATH_LENGTH] = { 0 };
memset(path, 0, MAX_FILEPATH_LENGTH);
struct dirent *dp = NULL;