changeset 2719:9747583279d1

[gaim-migrate @ 2732] eh. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Thu, 15 Nov 2001 08:19:46 +0000
parents 757688c301b5
children e55c53902c05
files src/protocols/toc/toc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/toc/toc.c	Wed Nov 14 23:42:14 2001 +0000
+++ b/src/protocols/toc/toc.c	Thu Nov 15 08:19:46 2001 +0000
@@ -1122,7 +1122,8 @@
 static void toc_chat_invite(struct gaim_connection *g, int id, char *message, char *name)
 {
 	char buf[BUF_LONG];
-	g_snprintf(buf, sizeof(buf) / 2, "toc_chat_invite %d \"%s\" %s", id, message, normalize(name));
+	g_snprintf(buf, sizeof(buf) / 2, "toc_chat_invite %d \"%s\" %s", id,
+			message ? message : "", normalize(name));
 	sflap_send(g, buf, -1, TYPE_DATA);
 }