summaryrefslogtreecommitdiff
path: root/source/fud_assert.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/fud_assert.cpp')
-rw-r--r--source/fud_assert.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/fud_assert.cpp b/source/fud_assert.cpp
index 7838e22..966f44c 100644
--- a/source/fud_assert.cpp
+++ b/source/fud_assert.cpp
@@ -42,8 +42,8 @@ DrainResult BufferSink::drain(StringView source)
return result;
}
/* TODO: give users control over this functionality */
- result.bytesWritten = fwrite(reinterpret_cast<const char*>(source.m_data), 1, source.m_length, stderr);
- if (result.bytesWritten != source.m_length) {
+ result.bytesDrained = fwrite(reinterpret_cast<const char*>(source.m_data), 1, source.m_length, stderr);
+ if (result.bytesDrained != source.m_length) {
result.status = FudStatus::Full;
}
return result;