Common: Fix GetWorkingDirectory on unix

This commit is contained in:
TellowKrinkle 2021-12-12 05:21:30 -06:00 committed by refractionpcsx2
parent 5d15d5958e
commit ea25f49c65
1 changed files with 1 additions and 0 deletions

View File

@ -1557,6 +1557,7 @@ std::string FileSystem::GetWorkingDirectory()
buffer.resize(buffer.size() * 2);
}
buffer.resize(std::strlen(buffer.c_str())); // Remove excess nulls
return buffer;
}