aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Ryan <jeffreyryan@tutanota.com>2022-09-20 12:04:10 -0500
committerJeffrey Ryan <jeffreyryan@tutanota.com>2022-09-20 12:04:14 -0500
commit07f8e9e891462446b6b8c4bb42c73438b5b448df (patch)
tree840a5e0d252ab159e0f06ada815eed6d6ba7c98f
parentMerge pull request #8545 (diff)
downloadmonero-07f8e9e891462446b6b8c4bb42c73438b5b448df.tar.xz
epee: dont shrink slice when storing to binary [release]
-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);
}