diff options
author | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 20:13:52 -0500 |
---|---|---|
committer | Dominick Allen <djallen@librehumanitas.org> | 2024-10-27 20:13:52 -0500 |
commit | cbf3ad2b284a9e79ef5df564be6b16e8e746cb2b (patch) | |
tree | f3c3a1cf9c1286144d002611b209f63541b14426 /source/fud_string.cpp | |
parent | b8345246dcc2121bcb6d1515a9341789de20199f (diff) |
Setup float formatting.
Diffstat (limited to 'source/fud_string.cpp')
-rw-r--r-- | source/fud_string.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |