mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-26 08:05:38 +00:00
Fix start and offset not being reset for each invalidChar tested in Utils::FileSystem::GetEscapedPath
This commit is contained in:
parent
bb678eecd1
commit
6054cb673d
|
@ -206,11 +206,12 @@ namespace Utils
|
|||
// insert a backslash before most characters that would mess up a bash path
|
||||
const char* invalidChars = "\\ '\"!$^&*(){}[]?;<>";
|
||||
const char* invalidChar = invalidChars;
|
||||
size_t start = 0;
|
||||
size_t offset = 0;
|
||||
|
||||
while(*invalidChar)
|
||||
{
|
||||
size_t start = 0;
|
||||
size_t offset = 0;
|
||||
|
||||
while((offset = path.find(*invalidChar, start)) != std::string::npos)
|
||||
{
|
||||
start = offset + 1;
|
||||
|
|
Loading…
Reference in a new issue