Mercurial > pidgin.yaz
diff src/protocols/jabber/presence.c @ 11127:719779387f96
[gaim-migrate @ 13183]
Change the base16 and base64 functions to use better data types,
and make appropriate changes to other parts of the Gaim code
to get rid of a few warnings and hopefully make things more
correct.
In other news, why is CVS HEAD crashing for me on exit?
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Tue, 19 Jul 2005 05:15:45 +0000 |
parents | 7653143dec36 |
children | 096020ae09a9 |
line wrap: on
line diff
--- a/src/protocols/jabber/presence.c Tue Jul 19 03:51:54 2005 +0000 +++ b/src/protocols/jabber/presence.c Tue Jul 19 05:15:45 2005 +0000 @@ -206,8 +206,9 @@ JabberBuddy *jb = NULL; GaimBuddy *b = NULL; xmlnode *vcard, *photo, *binval; - char *text, *data; - int size; + char *text; + guint8 *data; + gsize size; const char *from = xmlnode_get_attrib(packet, "from"); if(!from) @@ -222,7 +223,7 @@ if((photo = xmlnode_get_child(vcard, "PHOTO")) && (binval = xmlnode_get_child(photo, "BINVAL")) && (text = xmlnode_get_data(binval))) { - gaim_base64_decode(text, &data, &size); + data = gaim_base64_decode(text, &size); gaim_buddy_icons_set_for_user(js->gc->account, from, data, size); if((b = gaim_find_buddy(js->gc->account, from))) {