From e45619e61e4831eea70a43fe6985f4d57ea02e9e Mon Sep 17 00:00:00 2001 From: luigi1111 Date: Fri, 16 Apr 2021 13:52:44 -0500 Subject: Revert "Merge pull request #7136" This reverts commit 63c7ca07fba2f063c760f786a986fb3e02fb040e, reversing changes made to 2218e23e84a89e9a1e4c0be5d50f891ab836754f. --- tests/fuzz/levin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/fuzz/levin.cpp') diff --git a/tests/fuzz/levin.cpp b/tests/fuzz/levin.cpp index 209a75221..78b7b6863 100644 --- a/tests/fuzz/levin.cpp +++ b/tests/fuzz/levin.cpp @@ -68,13 +68,13 @@ namespace { } - virtual int invoke(int command, const epee::span in_buff, epee::byte_stream& buff_out, test_levin_connection_context& context) + virtual int invoke(int command, const epee::span in_buff, epee::byte_slice& buff_out, test_levin_connection_context& context) { m_invoke_counter.inc(); boost::unique_lock lock(m_mutex); m_last_command = command; m_last_in_buf = std::string((const char*)in_buff.data(), in_buff.size()); - buff_out.write(epee::to_span(m_invoke_out_buf)); + buff_out = m_invoke_out_buf.clone(); return m_return_code; } -- cgit v1.2.3