Mercurial > pidgin.yaz
diff src/protocols/jabber/buddy.c @ 10687:b256ce6b85b8
[gaim-migrate @ 12235]
grim says this is really fixed this time.
committer: Tailor Script <tailor@pidgin.im>
author | Etan Reisner <pidgin@unreliablesource.net> |
---|---|
date | Sat, 12 Mar 2005 01:10:37 +0000 |
parents | 72a5babfa8b4 |
children | cef48e318125 |
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c Fri Mar 11 22:45:41 2005 +0000 +++ b/src/protocols/jabber/buddy.c Sat Mar 12 01:10:37 2005 +0000 @@ -394,7 +394,8 @@ enc = gaim_base64_encode(avatar_data, avatar_len); gaim_cipher_digest_region("sha1", (guint8 *)avatar_data, - avatar_len, hashval, NULL); + avatar_len, sizeof(hashval), + hashval, NULL); p = hash; for(i=0; i<20; i++, p+=2) @@ -820,7 +821,7 @@ data, size); gaim_cipher_digest_region("sha1", (guint8 *)data, size, - hashval, NULL); + sizeof(hashval), hashval, NULL); p = hash; for(i=0; i<20; i++, p+=2) snprintf(p, 3, "%02x", hashval[i]);