changeset 744:f53e8f48628d

[gaim-migrate @ 754] oscar linkifies committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Wed, 23 Aug 2000 01:15:10 +0000
parents b1b77b39a1fa
children d693b83e4933
files src/oscar.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/oscar.c	Wed Aug 23 00:30:10 2000 +0000
+++ b/src/oscar.c	Wed Aug 23 01:15:10 2000 +0000
@@ -664,6 +664,7 @@
 	if (channel == 1) {
 		struct aim_userinfo_s *userinfo;
 		char *msg = NULL;
+		char *tmp = g_malloc(BUF_LONG);
 		u_int icbmflags = 0;
 		u_short flag1, flag2;
 
@@ -674,7 +675,9 @@
 		flag2     = (u_short)va_arg(ap, u_int);
 		va_end(ap);
 
-		serv_got_im(userinfo->sn, msg, icbmflags & AIM_IMFLAGS_AWAY);
+		g_snprintf(tmp, BUF_LONG, "%s", msg);
+		serv_got_im(userinfo->sn, tmp, icbmflags & AIM_IMFLAGS_AWAY);
+		g_free(tmp);
 	} else if (channel == 2) {
 		struct aim_userinfo_s *userinfo;
 		int rendtype = va_arg(ap, int);