Commit 6c552dd7 authored by Hubert Chathi's avatar Hubert Chathi
Browse files

use the right size in the tests

parent d84c1af8
Pipeline #9148 passed with stages
in 2 minutes and 28 seconds
...@@ -233,7 +233,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt( ...@@ -233,7 +233,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt(
std::vector<std::uint8_t> tmp_message_1(message_1); std::vector<std::uint8_t> tmp_message_1(message_1);
std::vector<std::uint8_t> b_session_buffer(::olm_account_size()); std::vector<std::uint8_t> b_session_buffer(::olm_session_size());
::OlmSession *b_session = ::olm_session(b_session_buffer.data()); ::OlmSession *b_session = ::olm_session(b_session_buffer.data());
::olm_create_inbound_session( ::olm_create_inbound_session(
b_session, b_account, tmp_message_1.data(), message_1.size() b_session, b_account, tmp_message_1.data(), message_1.size()
...@@ -375,7 +375,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt( ...@@ -375,7 +375,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt(
)); ));
std::vector<std::uint8_t> tmp_message_1(message_1); std::vector<std::uint8_t> tmp_message_1(message_1);
std::vector<std::uint8_t> b_session_buffer(::olm_account_size()); std::vector<std::uint8_t> b_session_buffer(::olm_session_size());
::OlmSession *b_session = ::olm_session(b_session_buffer.data()); ::OlmSession *b_session = ::olm_session(b_session_buffer.data());
::olm_create_inbound_session( ::olm_create_inbound_session(
b_session, b_account, tmp_message_1.data(), message_1.size() b_session, b_account, tmp_message_1.data(), message_1.size()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment