mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-12-16 04:09:07 +00:00
PSF.cpp: Fixup
This commit is contained in:
parent
ede8382c6a
commit
cc8929ef4a
@ -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,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user