diff options
author | dec05eba <0xdec05eba@gmail.com> | 2018-10-17 06:00:29 +0200 |
---|---|---|
committer | dec05eba <0xdec05eba@gmail.com> | 2018-10-17 06:00:44 +0200 |
commit | 41cfccfa042fedc7395a35131f2ad117ca893e42 (patch) | |
tree | 48e78af74987d607d9f98a26b1373b0685dc19f8 | |
parent | e0511ecead4d98ed84e18960a2f23cfe707b5a28 (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]; |