summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_omemo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2022-10-15 19:23:01 +0300
committerGeorge Hazan <ghazan@miranda.im>2022-10-15 19:23:01 +0300
commit6306fdef595a68df4cdfeadf0545e3a59a321ab3 (patch)
treea3a1a5fac16b8f3680a69d92b4886e172c9e9b45 /protocols/JabberG/src/jabber_omemo.cpp
parent2292ef20cf0378346f4fa857ca7cdc501c52794d (diff)
minor code cleaning
Diffstat (limited to 'protocols/JabberG/src/jabber_omemo.cpp')
-rw-r--r--protocols/JabberG/src/jabber_omemo.cpp2
1 files changed, 1 insertions, 1 deletions
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);