mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Made GetActualPath tolerant of multiple slashes
This commit is contained in:
parent
54b77f400a
commit
aa313a1a9d
1 changed files with 5 additions and 1 deletions
|
@ -3202,6 +3202,10 @@ BFP_EXPORT void BFP_CALLTYPE BfpFile_GetActualPath(const char* inPathC, char* ou
|
|||
}
|
||||
|
||||
++i;
|
||||
// Ignore multiple slashes in a row
|
||||
while ((i < length) && ((inPath[i] == DIR_SEP_CHAR) || (inPath[i] == DIR_SEP_CHAR_ALT)))
|
||||
++i;
|
||||
|
||||
lastComponentStart = i;
|
||||
addSeparator = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue