Changeset 7b07dc6 for protocols


Ignore:
Timestamp:
2006-03-21T08:36:10Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
9b8efab
Parents:
87b6a3e
Message:

Fixed ugliness in serv_got_crap().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/nogaim.c

    r87b6a3e r7b07dc6  
    306306{
    307307        va_list params;
    308         char text[1024], buf[1024], acc_id[33];
     308        char text[1024], buf[1024], *acc_id;
    309309        char *msg;
    310310        account_t *a;
     
    331331        /* If we found one, add the screenname to the acc_id. */
    332332        if( a )
    333                 g_snprintf( acc_id, 32, "%s(%s)", gc->prpl->name, gc->username );
     333                acc_id = g_strdup_printf( "%s(%s)", gc->prpl->name, gc->username );
    334334        else
    335                 g_snprintf( acc_id, 32, "%s", gc->prpl->name );
     335                acc_id = g_strdup( gc->prpl->name );
    336336       
    337337        irc_usermsg( gc->irc, "%s - %s", acc_id, msg );
     338       
     339        g_free( acc_id );
    338340}
    339341
Note: See TracChangeset for help on using the changeset viewer.