Changes in / [5d9b792:0a69d7b]


Ignore:
Location:
protocols
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/http_client.c

    r5d9b792 r0a69d7b  
    240240
    241241got_reply:
    242         /* Maybe if the webserver is overloaded, or when there's bad SSL
    243            support... */
    244         if( req->bytes_read == 0 )
    245                 goto cleanup;
    246        
    247242        /* Zero termination is very convenient. */
    248243        req->reply_headers[req->bytes_read] = 0;
  • protocols/oscar/chat.c

    r5d9b792 r0a69d7b  
    163163                 the right charset flags, as we also do with normal
    164164                 messages. Hope this will work. :-) */
    165         /*
    166165        if (flags & AIM_CHATFLAGS_UNICODE)
    167166                aimbs_put16(&fr->data, 0x0002);
     
    172171       
    173172        aimbs_put16(&fr->data, 0x0000);
    174         */
    175173       
    176174        /*
  • protocols/oscar/oscar.c

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