# HG changeset patch # User Eric Warmenhoven # Date 1000331560 0 # Node ID f2150073cd41554b808329ec6f92e3993aa2e47f # Parent 0b5c3338fa3de452cc9d1958d1783e43268e8538 [gaim-migrate @ 2284] bug. committer: Tailor Script diff -r 0b5c3338fa3d -r f2150073cd41 src/plugins.c --- a/src/plugins.c Wed Sep 12 21:29:32 2001 +0000 +++ b/src/plugins.c Wed Sep 12 21:52:40 2001 +0000 @@ -931,7 +931,7 @@ break; case event_chat_invited: g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %s", (char *)arg2, (char *)arg3, - (char *)arg4); + arg4 ? (char *)arg4 : ""); break; case event_chat_join: g_snprintf(buf, sizeof buf, "\"%s\"", (char *)arg2); @@ -955,7 +955,8 @@ break; case event_warned: g_snprintf(buf, sizeof buf, "\"%s\" \"%s\" %d", - ((struct gaim_connection *)arg1)->username, (char *)arg2, (int)arg3); + ((struct gaim_connection *)arg1)->username, + arg2 ? (char *)arg2 : "", (int)arg3); break; case event_error: g_snprintf(buf, sizeof buf, "%d", (int)arg1);