aboutsummaryrefslogtreecommitdiffstats
path: root/irc_channel.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-04-01 22:29:45 -0400
committerWilmer van der Gaast <wilmer@gaast.net>2010-04-01 22:29:45 -0400
commitfb117aee274bccfb6528288599ef81fe72191e12 (patch)
tree5f31493f33c12528dce1424057c94bba64633dbc /irc_channel.c
parente63507a356ac94085bcd00048b81d3ce2f27f287 (diff)
Cleaned lots of compiler warnings so I can get some signal again.
Diffstat (limited to 'irc_channel.c')
-rw-r--r--irc_channel.c5
1 files changed, 4 insertions, 1 deletions
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;
}