diff options
author | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-25 23:34:49 +0000 |
---|---|---|
committer | Rozhuk Ivan <rozhuk.im@gmail.com> | 2014-11-25 23:34:49 +0000 |
commit | ed4483115a924f177b786e11bc436243512eb8da (patch) | |
tree | 01ba33ddeba47db569a4ac8e9e56f4945eb26a68 /protocols/IcqOscarJ/src/icqosc_svcs.cpp | |
parent | 74f4ab340ebf9a3399f82ad38b53ad6fcdf8885d (diff) |
jabber code clean up
req code review
git-svn-id: http://svn.miranda-ng.org/main/trunk@11074 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IcqOscarJ/src/icqosc_svcs.cpp')
-rw-r--r-- | protocols/IcqOscarJ/src/icqosc_svcs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IcqOscarJ/src/icqosc_svcs.cpp b/protocols/IcqOscarJ/src/icqosc_svcs.cpp index 18accdf412..52ff1339da 100644 --- a/protocols/IcqOscarJ/src/icqosc_svcs.cpp +++ b/protocols/IcqOscarJ/src/icqosc_svcs.cpp @@ -509,13 +509,13 @@ INT_PTR CIcqProto::SetMyAvatar(WPARAM wParam, LPARAM lParam) BYTE *hash = calcMD5HashOfFile(tszMyFile);
if (hash) {
- BYTE *ihash = (BYTE*)_alloca(0x14);
+ BYTE ihash[0x14];
// upload hash to server
ihash[0] = 0; //unknown
ihash[1] = dwPaFormat == PA_FORMAT_XML ? AVATAR_HASH_FLASH : AVATAR_HASH_STATIC; //hash type
ihash[2] = 1; //hash status
ihash[3] = 0x10; //hash len
- memcpy(ihash + 4, hash, 0x10);
+ memcpy((ihash + 4), hash, 0x10);
updateServAvatarHash(ihash, 0x14);
if (setSettingBlob(NULL, "AvatarHash", ihash, 0x14))
|