changeset 1688:85d8c64e969d

[gaim-migrate @ 1698] linky linky committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Fri, 06 Apr 2001 19:10:28 +0000
parents c9921a214121
children 09017c023fcd
files plugins/jabber/jabber.c
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);