diff src/protocols/jabber/jabber.c @ 5954:fccc33d4b8fa

[gaim-migrate @ 6398] I made serv_set_info or whatever it's called take a const char * I don't really remember why I also made some other small changes There should be no functionality change I'm still struggling to get available messages working. They haunt my dreams. Like the gray gorilla, or the Silhouette of the past, fading into the dim light of the moon. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Wed, 25 Jun 2003 04:20:30 +0000
parents 94ad4d45346a
children c5c3ddac1c89
line wrap: on
line diff
--- a/src/protocols/jabber/jabber.c	Wed Jun 25 03:40:03 2003 +0000
+++ b/src/protocols/jabber/jabber.c	Wed Jun 25 04:20:30 2003 +0000
@@ -3915,12 +3915,13 @@
 /*
  * Send vCard info to Jabber server
  */
-static void jabber_set_info(GaimConnection *gc, char *info)
+static void jabber_set_info(GaimConnection *gc, const char *info)
 {
 	xmlnode x, vc_node;
 	char *id;
 	struct jabber_data *jd = gc->proto_data;
 	gjconn gjc = jd->gjc;
+	gchar *info2;
 
 	x = xmlnode_new_tag("iq");
 	xmlnode_put_attrib(x, "type", "set");
@@ -3932,7 +3933,8 @@
 	/*
 	 * Send only if there's actually any *information* to send
 	 */
-	vc_node = xmlstr2xmlnode(info);
+	info2 = g_strdup(info);
+	vc_node = xmlstr2xmlnode(info2);
 
 	if(vc_node) {
 		if (xmlnode_get_name(vc_node) &&
@@ -3946,6 +3948,7 @@
 	}
 
 	xmlnode_free(x);
+	g_free(info2);
 }
 
 /*