From cbf3ad2b284a9e79ef5df564be6b16e8e746cb2b Mon Sep 17 00:00:00 2001 From: Dominick Allen Date: Sun, 27 Oct 2024 20:13:52 -0500 Subject: Setup float formatting. --- source/fud_string.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/fud_string.cpp') diff --git a/source/fud_string.cpp b/source/fud_string.cpp index c444a74..3ba6603 100644 --- a/source/fud_string.cpp +++ b/source/fud_string.cpp @@ -500,8 +500,9 @@ DrainResult String::drain(StringView source) auto* destPtr = data() + length(); auto status = copyMem(destPtr, remainingLength(), source.data(), source.length()); fudAssert(status == FudStatus::Success); + result.bytesWritten += source.length(); - m_length += source.length(); + m_length = newLength; status = nullTerminate(); return result; -- cgit v1.2.3