Changeset 5c9512f for storage_xml.c


Ignore:
Timestamp:
2006-06-30T09:17:18Z (13 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0a3c243
Parents:
1719464
Message:

Made set.c API more generic so it's not specific to irc_t structures anymore,
but can be used for account_t structures too, for example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • storage_xml.c

    r1719464 r5c9512f  
    246246                 xd->current_setting && xd->current_account == NULL )
    247247        {
    248                 set_setstr( irc, xd->current_setting, (char*) text );
     248                set_setstr( &irc->set, xd->current_setting, (char*) text );
    249249                g_free( xd->current_setting );
    250250                xd->current_setting = NULL;
     
    421421                pass_len = rc4_encode( (unsigned char*) acc->pass, strlen( acc->pass ), (unsigned char**) &pass_rc4, irc->password );
    422422                pass_b64 = base64_encode( pass_rc4, pass_len );
     423                g_free( pass_rc4 );
    423424               
    424425                if( !xml_printf( fd, "\t<account protocol=\"%s\" handle=\"%s\" password=\"%s\" autoconnect=\"%d\"", acc->prpl->name, acc->user, pass_b64, acc->auto_connect ) )
    425426                {
    426                         g_free( pass_rc4 );
    427427                        g_free( pass_b64 );
    428428                        goto write_error;
    429429                }
    430                 g_free( pass_rc4 );
    431430                g_free( pass_b64 );
    432431               
Note: See TracChangeset for help on using the changeset viewer.