This commit is contained in:
Wojtek Figat
2024-09-24 22:12:42 +02:00
parent 207c6a0cb5
commit c8eed098ba
2 changed files with 2 additions and 2 deletions

View File

@@ -184,7 +184,7 @@ bool AppleFileSystem::GetChildDirectories(Array<String>& results, const String&
// Determinate a full path of an entry
char fullPath[256];
ASSERT(pathLength + strlen(entry->d_name) < ARRAY_COUNT(fullPath));
strcpy(fullPath, path);
strcpy(fullPath, pathStr);
strcat(fullPath, "/");
strcat(fullPath, entry->d_name);

View File

@@ -330,7 +330,7 @@ bool LinuxFileSystem::GetChildDirectories(Array<String>& results, const String&
// Determinate a full path of an entry
char fullPath[256];
ASSERT(pathLength + strlen(entry->d_name) < ARRAY_COUNT(fullPath));
strcpy(fullPath, path);
strcpy(fullPath, pathStr);
strcat(fullPath, "/");
strcat(fullPath, entry->d_name);