diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-01 22:29:45 -0400 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2010-04-01 22:29:45 -0400 |
commit | fb117aee274bccfb6528288599ef81fe72191e12 (patch) | |
tree | 5f31493f33c12528dce1424057c94bba64633dbc /irc_user.c | |
parent | e63507a356ac94085bcd00048b81d3ce2f27f287 (diff) |
Cleaned lots of compiler warnings so I can get some signal again.
Diffstat (limited to 'irc_user.c')
-rw-r--r-- | irc_user.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; } |