diff src/away.c @ 6019:272c761c52e3

[gaim-migrate @ 6469] So Decklin sent me a patch to fix the problem with setting profiles, and then later that day, before I got a shot at it, KingAnt fixed it himself. But Decklin's fix is better, so here it is, hand-merged with love. KingAnt also points out that Decklin Foster is a cool name. Decklin also realized (and fixed) that we were initializing static protocols after importing prefs, causing the import to fail. Thanks, Decklin. committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Sat, 05 Jul 2003 01:49:07 +0000
parents 059d95c67cda
children dc42b27101c0
line wrap: on
line diff
--- a/src/away.c	Fri Jul 04 21:29:55 2003 +0000
+++ b/src/away.c	Sat Jul 05 01:49:07 2003 +0000
@@ -208,7 +208,6 @@
 	GtkWidget *vbox;
 	GtkTreeViewColumn *column;
 	GtkCellRenderer *renderer;
-	char *buf2;
 	char *buf;
 
 	if (!a)
@@ -301,10 +300,7 @@
 	}
 
 	gtk_widget_show(imaway);
-	buf2 = g_malloc(strlen(awaymessage->message) * 4 + 1);
-	strncpy_withhtml(buf2, awaymessage->message, strlen(awaymessage->message) * 4 + 1);
-	serv_set_away_all(buf2);
-	g_free(buf2);
+	serv_set_away_all(awaymessage->message);
 }
 
 void rem_away_mess(GtkWidget *w, struct away_message *a)