summaryrefslogtreecommitdiff
path: root/source/fud_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_string.cpp')
-rw-r--r--source/fud_string.cpp3
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;