Ignore:
Timestamp:
2006-05-25T08:57:31Z (15 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0602496
Parents:
fc630f9
Message:

Disabling chat charset stuff again for now and fixed the crash-bug.
Unfortunately I can't figure out how to generate chat names that don't
break old BitlBees.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/oscar/oscar.c

    rfc630f9 r936ded6  
    138138        int i, j;
    139139        char *x = strchr(name, '-');
    140         if (!x) return NULL;
     140        if (!x) return g_strdup(name);
    141141        x = strchr(++x, '-');
    142         if (!x) return NULL;
     142        if (!x) return g_strdup(name);
    143143        tmp = g_strdup(++x);
    144144
     
    26072607        int ret;
    26082608        static int chat_id = 0;
    2609         char * chatname = g_new0(char, strlen(gc->username)+4);
    2610        
    2611         g_snprintf(chatname, strlen(gc->username) + 4, "%s%d", gc->username, chat_id++);
     2609        char * chatname;
     2610       
     2611        chatname = g_strdup_printf("%s%d", gc->username, chat_id++);
    26122612 
    26132613        ret = oscar_chat_join(gc, chatname);
Note: See TracChangeset for help on using the changeset viewer.