From 492dc1ab5875af5b6a1fb7039dd5262e55eb48eb Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Mon, 22 Jun 2015 17:44:56 +0100 Subject: Add API docs for the axolotl.hh methods --- src/axolotl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/axolotl.cpp') 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; } -- cgit v1.2.3