aboutsummaryrefslogtreecommitdiffstats
path: root/irc_user.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_user.c
parente63507a356ac94085bcd00048b81d3ce2f27f287 (diff)
Cleaned lots of compiler warnings so I can get some signal again.
Diffstat (limited to 'irc_user.c')
-rw-r--r--irc_user.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/irc_user.c b/irc_user.c
index 8e20fd15..b3075c3b 100644
--- a/irc_user.c
+++ b/irc_user.c
@@ -120,10 +120,13 @@ gint irc_user_cmp( gconstpointer a_, gconstpointer b_ )
/* User-type dependent functions, for root/NickServ: */
static gboolean root_privmsg( irc_user_t *iu, const char *msg )
{
+ char cmd[strlen(msg)+1];
+
g_free( iu->irc->last_root_cmd );
iu->irc->last_root_cmd = g_strdup( iu->nick );
- root_command_string( iu->irc, msg );
+ strcpy( cmd, msg );
+ root_command_string( iu->irc, cmd );
return TRUE;
}