Changeset fb117aee for irc_user.c


Ignore:
Timestamp:
2010-04-02T02:29:45Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
231b08b
Parents:
e63507a
Message:

Cleaned lots of compiler warnings so I can get some signal again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_user.c

    re63507a rfb117aee  
    121121static gboolean root_privmsg( irc_user_t *iu, const char *msg )
    122122{
     123        char cmd[strlen(msg)+1];
     124       
    123125        g_free( iu->irc->last_root_cmd );
    124126        iu->irc->last_root_cmd = g_strdup( iu->nick );
    125127       
    126         root_command_string( iu->irc, msg );
     128        strcpy( cmd, msg );
     129        root_command_string( iu->irc, cmd );
    127130       
    128131        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.