diff src/oscar.c @ 1643:d7e380618fd5

[gaim-migrate @ 1653] linkify in chat. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 24 Mar 2001 09:47:17 +0000
parents 67060e06b234
children 3fe5799b7823
line wrap: on
line diff
--- a/src/oscar.c	Sat Mar 24 06:45:48 2001 +0000
+++ b/src/oscar.c	Sat Mar 24 09:47:17 2001 +0000
@@ -1579,6 +1579,7 @@
 	struct aim_userinfo_s *info;
 	char *msg;
 	struct gaim_connection *gc = sess->aux_data;
+	char *tmp;
 
 	GSList *bcs = gc->buddy_chats;
 	struct conversation *b = NULL;
@@ -1597,7 +1598,10 @@
 	if (!b)
 		return 0;
 
-	serv_got_chat_in(gc, b->id, info->sn, 0, msg);
+	tmp = g_malloc(BUF_LONG);
+	g_snprintf(tmp, BUF_LONG, "%s", msg);
+	serv_got_chat_in(gc, b->id, info->sn, 0, tmp);
+	g_free(tmp);
 
 	return 1;
 }