aboutsummaryrefslogtreecommitdiff
path: root/src/axolotl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/axolotl.cpp')
-rw-r--r--src/axolotl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/axolotl.cpp b/src/axolotl.cpp
index c195a7c..f03a01c 100644
--- a/src/axolotl.cpp
+++ b/src/axolotl.cpp
@@ -341,7 +341,7 @@ void output_key(
size_t axolotl_account_identity_keys_length(
AxolotlAccount * account
) {
- return OUTPUT_KEY_LENGTH * 2 + 1;
+ return OUTPUT_KEY_LENGTH + 1;
}
@@ -358,7 +358,6 @@ size_t axolotl_account_identity_keys(
std::uint8_t * output = from_c(identity_keys);
output_key(from_c(account)->identity_key, '[', output);
output += OUTPUT_KEY_LENGTH;
- output += OUTPUT_KEY_LENGTH;
output[0] = ']';
return length;
}