Skip to content

Commit

Permalink
Merge pull request #1417 from alarixnia/strrchr
Browse files Browse the repository at this point in the history
Fix a compilation error on some platforms.
  • Loading branch information
jpd002 authored Oct 22, 2024
2 parents fd39628 + 2a3c4ea commit b9c5c4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/ee/PS2OS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ void CPS2OS::LoadELF(Framework::CStream* stream, const char* executablePath, con
auto executableName = executablePath;
for(const auto separator : separators)
{
if(auto sepPos = strrchr(executablePath, separator))
if(const char* sepPos = strrchr(executablePath, separator))
{
executableName = std::max(executableName, sepPos + 1);
}
Expand Down

0 comments on commit b9c5c4d

Please sign in to comment.