aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2018-10-17 06:00:29 +0200
committerdec05eba <dec05eba@protonmail.com>2020-08-18 22:56:48 +0200
commita259a23c388866d32ca63235591d81b18689f42a (patch)
treee254728b7548e4adf281efb604b6d71ec9d80eb4 /src
parentcf5bcde77556847075e6cbdac9426892844ee643 (diff)
Allocate correct for pubsubkey tostring
Diffstat (limited to 'src')
-rw-r--r--src/PubsubKey.cpp2
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];