summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-29 14:37:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-29 14:37:14 +0000
commitb3b1e0dba6dcacfa6faaff6793ff7c3aedfea859 (patch)
tree1e0bbce7a32fe59bcc27c64bf00ae8a50c465371 /protocols
parent7dc4e9573e51fe25d5d845a7ef0db784c61f61d6 (diff)
final fix for #577
git-svn-id: http://svn.miranda-ng.org/main/trunk@7947 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r--protocols/JabberG/src/jabber_secur.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/JabberG/src/jabber_secur.cpp b/protocols/JabberG/src/jabber_secur.cpp
index b2158cb410..5758565b1f 100644
--- a/protocols/JabberG/src/jabber_secur.cpp
+++ b/protocols/JabberG/src/jabber_secur.cpp
@@ -231,7 +231,7 @@ TScramAuth::~TScramAuth()
void TScramAuth::Hi(BYTE* res, char* passw, size_t passwLen, char* salt, size_t saltLen, int ind)
{
- BYTE u[MIR_SHA1_HASH_SIZE];
+ BYTE *u = (BYTE*)_alloca(saltLen + sizeof(unsigned));
memcpy(u, salt, saltLen); *(unsigned*)(u + saltLen) = htonl(1); saltLen += 4;
memset(res, 0, MIR_SHA1_HASH_SIZE);