summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_util.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/JabberG/src/jabber_util.cpp')
-rw-r--r--protocols/JabberG/src/jabber_util.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_util.cpp b/protocols/JabberG/src/jabber_util.cpp
index 77b6b0a91c..d3741151ba 100644
--- a/protocols/JabberG/src/jabber_util.cpp
+++ b/protocols/JabberG/src/jabber_util.cpp
@@ -289,7 +289,7 @@ char* __stdcall JabberSha1(char* str)
if (str == NULL)
return NULL;
- BYTE digest[20];
+ BYTE digest[MIR_SHA1_HASH_SIZE];
mir_sha1_ctx sha;
mir_sha1_init(&sha);
mir_sha1_append(&sha, (BYTE*)str, (int)strlen(str));
@@ -1314,8 +1314,8 @@ void __cdecl CJabberProto::LoadHttpAvatars(void* param)
setByte(AI.hContact, "AvatarType", pictureType);
- char buffer[ 41 ];
- BYTE digest[20];
+ char buffer[2*MIR_SHA1_HASH_SIZE+1];
+ BYTE digest[MIR_SHA1_HASH_SIZE];
mir_sha1_ctx sha;
mir_sha1_init(&sha);
mir_sha1_append(&sha, (BYTE*)res->pData, res->dataLength);