From fb117aee274bccfb6528288599ef81fe72191e12 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Thu, 1 Apr 2010 22:29:45 -0400 Subject: Cleaned lots of compiler warnings so I can get some signal again. --- irc_channel.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'irc_channel.c') diff --git a/irc_channel.c b/irc_channel.c index 3afdddee..db3ecd34 100644 --- a/irc_channel.c +++ b/irc_channel.c @@ -138,10 +138,13 @@ gboolean irc_channel_name_ok( const char *name ) /* Channel-type dependent functions, for control channels: */ static gboolean control_channel_privmsg( irc_channel_t *ic, const char *msg ) { + char cmd[strlen(msg)+1]; + g_free( ic->irc->last_root_cmd ); ic->irc->last_root_cmd = g_strdup( ic->name ); - root_command_string( ic->irc, msg ); + strcpy( cmd, msg ); + root_command_string( ic->irc, cmd ); return TRUE; } -- cgit v1.2.3