From d0d8b267753792d0310dd964b0b688d6262e6eb4 Mon Sep 17 00:00:00 2001 From: Alexey Andreyev Date: Tue, 26 Jan 2021 21:55:13 +0300 Subject: Add missing reinterpret_cast for session data --- lib/olm/session.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/olm/session.cpp') diff --git a/lib/olm/session.cpp b/lib/olm/session.cpp index a2a7d28a..e7a57677 100644 --- a/lib/olm/session.cpp +++ b/lib/olm/session.cpp @@ -70,8 +70,8 @@ std::unique_ptr QOlmSession::createOutboundSession(QOlmAccount &acc QByteArray theirOneTimeKeyBuf = theirOneTimeKey.toUtf8(); const auto error = olm_create_outbound_session(olmOutboundSession, account.data(), - theirIdentityKeyBuf.data(), theirIdentityKeyBuf.length(), - theirOneTimeKeyBuf.data(), theirOneTimeKeyBuf.length(), + reinterpret_cast(theirIdentityKeyBuf.data()), theirIdentityKeyBuf.length(), + reinterpret_cast(theirOneTimeKeyBuf.data()), theirOneTimeKeyBuf.length(), reinterpret_cast(randomBuf.data()), randomBuf.length()); if (error == olm_error()) { -- cgit v1.2.3