diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-10-17 06:00:29 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-08-18 22:56:48 +0200 |
commit | a259a23c388866d32ca63235591d81b18689f42a (patch) | |
tree | e254728b7548e4adf281efb604b6d71ec9d80eb4 | |
parent | cf5bcde77556847075e6cbdac9426892844ee643 (diff) |
Allocate correct for pubsubkey tostring
-rw-r--r-- | src/PubsubKey.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PubsubKey.cpp b/src/PubsubKey.cpp index 64d2621..b0bd643 100644 --- a/src/PubsubKey.cpp +++ b/src/PubsubKey.cpp @@ -31,7 +31,7 @@ namespace sibs std::string PubsubKey::toString() const { std::string result; - result.reserve(data.size()); + result.reserve(data.size() * 2); for(usize i = 0; i < data.size(); ++i) { u8 c = data[i]; |