Fix #11521, e404ba0: size for remaining span determined incorrectly

(cherry picked from commit 33ba609290)
This commit is contained in:
rubidium42
2023-11-30 07:47:51 -04:00
committed by Jonathan G Rennison
parent e47bfe47b8
commit ae4ba00313

View File

@@ -131,7 +131,7 @@ public:
*/
StringParameters GetRemainingParameters(size_t offset)
{
return StringParameters(this->parameters.subspan(offset, GetDataLeft()));
return StringParameters(this->parameters.subspan(offset, this->parameters.size() - offset));
}
/** Return the amount of elements which can still be read. */