plugins/msn/msn.c

changeset 1731
cd3a67db852d
parent 1717
57e800c32dd2
child 1733
1faceef9e8c7
--- a/plugins/msn/msn.c	Fri Apr 20 07:50:47 2001 +0000
+++ b/plugins/msn/msn.c	Fri Apr 20 08:27:43 2001 +0000
@@ -392,6 +392,7 @@
 		gchar *user;
 		gchar *msgdata;
 		int size;
+		char rahc[MSN_BUF_LEN * 2];
 		       
 		res = g_strsplit(buf, " ", 0);
 
@@ -428,7 +429,8 @@
 		/* Otherwise, everything is ok. Let's show the message. Skipping, 
 		 * of course, the header. */
 
-		serv_got_im(gc, res[1], strstr(msgdata, "\r\n\r\n") + 4, 0);
+		g_snprintf(rahc, sizeof(rahc), "%s", strstr(msgdata, "\r\n\r\n") + 4);
+		serv_got_im(gc, res[1], rahc, 0);
 
 		g_strfreev(res);
 		g_free(msgdata);

mercurial