src/protocols/jabber/jabber.c

changeset 5954
58e43cf2dc1f
parent 5940
b815b54e3d2b
child 5957
3b0be49a228d
--- 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);
 }
 
 /*

mercurial