diff src/protocols/jabber/buddy.c @ 11303:10066662176a

[gaim-migrate @ 13503] For accounts, store only the basename of a buddy icon cache file. Everyone please make sure buddy icons still work for you. committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Thu, 18 Aug 2005 20:49:58 +0000
parents 8dca96cbcd64
children 519dc2186438
line wrap: on
line diff
--- a/src/protocols/jabber/buddy.c	Thu Aug 18 20:05:20 2005 +0000
+++ b/src/protocols/jabber/buddy.c	Thu Aug 18 20:49:58 2005 +0000
@@ -360,7 +360,7 @@
 	JabberIq *iq;
 	JabberStream *js = gc->proto_data;
 	xmlnode *vc_node;
-	const char *avatar_file = NULL;
+	char *avatar_file = NULL;
 
 	if(js->avatar_hash)
 		g_free(js->avatar_hash);
@@ -370,7 +370,7 @@
 	 * Send only if there's actually any *information* to send
 	 */
 	vc_node = xmlnode_from_str(info, -1);
-	avatar_file = gaim_account_get_buddy_icon(gc->account);
+	avatar_file == gaim_buddy_icons_get_full_path(gaim_account_get_buddy_icon(gc->account));
 
 	if(!vc_node && avatar_file) {
 		vc_node = xmlnode_new("vCard");
@@ -409,6 +409,7 @@
 			} else if (error != NULL) {
 				g_error_free(error);
 			}
+			g_free(avatar_file);
 
 			iq = jabber_iq_new(js, JABBER_IQ_SET);
 			xmlnode_insert_child(iq->node, vc_node);