aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2022-10-28 00:48:48 -0400
committerluigi1111 <luigi1111w@gmail.com>2022-10-28 00:48:48 -0400
commita43a5caefef073893f4b520e7ed674d9a9d0a8ff (patch)
tree9102fc7bf32d9523bb8f812e9486d7e573de067a
parentMerge pull request #8529 (diff)
parentrpc: dont shrink slice when loading from binary (diff)
downloadmonero-a43a5caefef073893f4b520e7ed674d9a9d0a8ff.tar.xz
Merge pull request #8543
d21fd92 rpc: dont shrink slice when loading from binary (Jeffrey Ryan)
-rw-r--r--contrib/epee/src/portable_storage.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/src/portable_storage.cpp b/contrib/epee/src/portable_storage.cpp
index b922cc9e3..cedc58e46 100644
--- a/contrib/epee/src/portable_storage.cpp
+++ b/contrib/epee/src/portable_storage.cpp
@@ -49,7 +49,7 @@ namespace serialization
byte_stream ss;
ss.reserve(initial_buffer_size);
store_to_binary(ss);
- target = epee::byte_slice{std::move(ss)};
+ target = epee::byte_slice{std::move(ss), false};
return true;
CATCH_ENTRY("portable_storage::store_to_binary", false);
}