Skip to content

Commit

Permalink
Fix merge build
Browse files Browse the repository at this point in the history
  • Loading branch information
rajkosto committed Feb 7, 2020
1 parent 3ee2f25 commit cab1766
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpcs3/Emu/VFS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -467,11 +467,11 @@ std::string vfs::unescape(std::string_view path)
std::string result;
result.reserve(path.size());

const char specialDot[] = u8"";
const char* specialDot = reinterpret_cast<const char*>(u8"");
for (std::size_t i = 0, s = path.size(); i < s; i++)
{
const size_t nexti = i+sizeof(specialDot);
if (nexti <= s && memcmp(&path[i],specialDot,sizeof(specialDot) == 0))
const size_t nexti = i+strlen(specialDot)+1;
if (nexti <= s && memcmp(&path[i],specialDot,strlen(specialDot)+1 == 0))
{
if (nexti == s || path[nexti] == '/')
{
Expand Down

0 comments on commit cab1766

Please sign in to comment.