mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
Allow compat_resolve_path to handle duplicate path separators (#575)
Alternate fix for https://github.com/fallout2-ce/fallout2-ce/pull/563.
This commit is contained in:
@@ -393,6 +393,15 @@ void compat_resolve_path(char* path)
|
||||
}
|
||||
|
||||
while (dir != nullptr) {
|
||||
while (*pch == '/') {
|
||||
pch++;
|
||||
}
|
||||
|
||||
if (*pch == '\0') {
|
||||
closedir(dir);
|
||||
break;
|
||||
}
|
||||
|
||||
char* sep = strchr(pch, '/');
|
||||
size_t length;
|
||||
if (sep != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user