PSF.cpp: Fixup

This commit is contained in:
Elad 2025-11-02 16:07:37 +02:00
parent ede8382c6a
commit cc8929ef4a

View File

@ -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,