plugins/jabber/jabber.c

changeset 1688
d01cef6d0e46
parent 1684
5551247184a3
child 1696
cace8879aa30
--- a/plugins/jabber/jabber.c	Thu Apr 05 19:43:05 2001 +0000
+++ b/plugins/jabber/jabber.c	Fri Apr 06 19:10:28 2001 +0000
@@ -549,8 +549,11 @@
 							p->from->resource, msg);
 					write_to_conv(b, buf, WFLAG_SYSTEM, NULL);
 				}
-			} else if (msg)
-				serv_got_chat_in(GJ_GC(j), b->id, p->from->resource, 0, msg);
+			} else if (msg) {
+				char buf[8192];
+				g_snprintf(buf, sizeof(buf), "%s", msg);
+				serv_got_chat_in(GJ_GC(j), b->id, p->from->resource, 0, buf);
+			}
 		/*
 		} else if (msg) {
 			write_to_conv(b, msg, WFLAG_SYSTEM, NULL);

mercurial