Changeset e0f9170 for storage_xml.c


Ignore:
Timestamp:
2008-06-26T23:18:31Z (11 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
178e2f8, 565a1ea
Parents:
d048ffc
Message:

xml_remove() didn't convert nicknames to lowercase so it caused some confusing
errors sometimes. This should close #395.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • storage_xml.c

    rd048ffc re0f9170  
    481481static storage_status_t xml_remove( const char *nick, const char *password )
    482482{
    483         char s[512];
     483        char s[512], *lc;
    484484        storage_status_t status;
    485485
     
    488488                return status;
    489489
    490         g_snprintf( s, 511, "%s%s%s", global.conf->configdir, nick, ".xml" );
     490        lc = g_strdup( nick );
     491        nick_lc( lc );
     492        g_snprintf( s, 511, "%s%s%s", global.conf->configdir, lc, ".xml" );
     493        g_free( lc );
     494       
    491495        if( unlink( s ) == -1 )
    492496                return STORAGE_OTHER_ERROR;
Note: See TracChangeset for help on using the changeset viewer.