Changeset bd64716


Ignore:
Timestamp:
2010-06-29T23:30:05Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
8203da9
Parents:
64f8c425
Message:

next_cursor is a 64-bit integer. Make it so. This should fix issues with
getting contact lists containing >100 people.

I'm still not getting a full list but even Twitter claims I'm at the end
of the list. Will investigate later.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter_lib.c

    r64f8c425 rbd64716  
    4242struct twitter_xml_list {
    4343        int type;
    44         int next_cursor;
     44        int64_t next_cursor;
    4545        GSList *list;
    4646        gpointer data;
     
    171171static xt_status twitter_xt_next_cursor( struct xt_node *node, struct twitter_xml_list *txl )
    172172{
    173         // Do something with the cursor.
    174         txl->next_cursor = node->text != NULL ? atoi(node->text) : -1;
     173        char *end = NULL;
     174       
     175        if( node->text )
     176                txl->next_cursor = g_ascii_strtoll( node->text, &end, 10 );
     177        if( end == NULL )
     178                txl->next_cursor = -1;
    175179
    176180        return XT_HANDLED;
Note: See TracChangeset for help on using the changeset viewer.