mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-01-31 01:25:18 +01:00
PSF.cpp: Fixup
This commit is contained in:
@@ -253,7 +253,10 @@ namespace psf
|
||||
if (indices[i].param_fmt == format::string)
|
||||
{
|
||||
// Find null terminator
|
||||
value.resize(value.find_first_of('\0'));
|
||||
if (usz nts = value.find_first_of('\0'); nts != umax)
|
||||
{
|
||||
value.resize(nts);
|
||||
}
|
||||
}
|
||||
|
||||
result.sfo.emplace(std::piecewise_construct,
|
||||
|
||||
Reference in New Issue
Block a user