From 6306fdef595a68df4cdfeadf0545e3a59a321ab3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 15 Oct 2022 19:23:01 +0300 Subject: minor code cleaning --- protocols/JabberG/src/jabber_omemo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_omemo.cpp') diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index 43195cc1f5..b8042b0a55 100644 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -2001,7 +2001,7 @@ int CJabberProto::OmemoEncryptMessage(XmlNode &msg, const char *msg_text, MCONTA int tmp_len = 0, outl; //EVP_EncryptUpdate(ctx, nullptr, &outl, aad, _countof(aad)); unsigned char *out = (unsigned char*)mir_alloc(inl + _countof(key) - 1); - EVP_EncryptUpdate(ctx, out, &outl, (unsigned char*)msg_text, inl); + EVP_EncryptUpdate(ctx, out, &outl, (unsigned char*)msg_text, (int)inl); tmp_len += outl; EVP_EncryptFinal(ctx, (unsigned char*)(out + tmp_len), &outl); -- cgit v1.2.3