mirror of https://github.com/PCSX2/pcsx2.git
Common: Fix GetWorkingDirectory on unix
This commit is contained in:
parent
5d15d5958e
commit
ea25f49c65
|
@ -1557,6 +1557,7 @@ std::string FileSystem::GetWorkingDirectory()
|
||||||
buffer.resize(buffer.size() * 2);
|
buffer.resize(buffer.size() * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
buffer.resize(std::strlen(buffer.c_str())); // Remove excess nulls
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue