diff src/protocols/toc/toc.c @ 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 e841b14b5b89
children a0fd8f91e294
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);
 }