From 6c552dd7eb596e806b3416a4bf78186314f75d67 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Mon, 9 Aug 2021 16:21:13 -0400 Subject: [PATCH] use the right size in the tests --- tests/test_olm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_olm.cpp b/tests/test_olm.cpp index 6a11fdd..215b180 100644 --- a/tests/test_olm.cpp +++ b/tests/test_olm.cpp @@ -233,7 +233,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt( std::vector tmp_message_1(message_1); -std::vector b_session_buffer(::olm_account_size()); +std::vector b_session_buffer(::olm_session_size()); ::OlmSession *b_session = ::olm_session(b_session_buffer.data()); ::olm_create_inbound_session( b_session, b_account, tmp_message_1.data(), message_1.size() @@ -375,7 +375,7 @@ assert_not_equals(std::size_t(-1), ::olm_encrypt( )); std::vector tmp_message_1(message_1); -std::vector b_session_buffer(::olm_account_size()); +std::vector b_session_buffer(::olm_session_size()); ::OlmSession *b_session = ::olm_session(b_session_buffer.data()); ::olm_create_inbound_session( b_session, b_account, tmp_message_1.data(), message_1.size()