Ignore:
Timestamp:
2010-06-30T23:56:46Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
e1f3f94
Parents:
52a2521 (diff), 8203da9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

A few Twitter fixes from mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/twitter/twitter.c

    r52a2521 r3353b5e  
    269269                    td->oauth_info && td->oauth_info->token == NULL )
    270270                {
    271                         if( !oauth_access_token( message, td->oauth_info ) )
     271                        char pin[strlen(message)+1], *s;
     272                       
     273                        strcpy( pin, message );
     274                        for( s = pin + sizeof( pin ) - 2; s > pin && isspace( *s ); s -- )
     275                                *s = '\0';
     276                        for( s = pin; *s && isspace( *s ); s ++ ) {}
     277                       
     278                        if( !oauth_access_token( s, td->oauth_info ) )
    272279                        {
    273280                                imcb_error( ic, "OAuth error: %s", "Failed to send access token request" );
Note: See TracChangeset for help on using the changeset viewer.