From d5bf60447bf72a68f7feb058542175a21fdf9698 Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Fri, 8 Dec 2023 16:22:09 +0100 Subject: [PATCH] Cleanup --- include/stdex/stream.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdex/stream.hpp b/include/stdex/stream.hpp index 7c2da5ee4..c5e7e5b27 100644 --- a/include/stdex/stream.hpp +++ b/include/stdex/stream.hpp @@ -475,7 +475,7 @@ namespace stdex for (;;) { _Elem buf[0x400]; uint32_t num_read = static_cast(read_array(buf, sizeof(_Elem), std::min(num_chars, _countof(buf)))); - data.append(buf, buf + num_read); + data.append(buf, num_read); num_chars -= num_read; if (!num_chars || !ok()) return *this;