diff options
| author | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-12 00:59:00 +0100 | 
|---|---|---|
| committer | Wilmer van der Gaast <wilmer@gaast.net> | 2011-06-12 00:59:00 +0100 | 
| commit | 7ceb6b267883fe905e7f47d7a131f945fd643012 (patch) | |
| tree | 8f218158925c0c7f040bb3657513ca0cf0594da7 /protocols/twitter | |
| parent | 14df98f1f4da171b728a87b6c6976844055b4a58 (diff) | |
Use sscanf, not strtoull. G_GUINT64_FORMAT really makes format strings look
so much better.
Diffstat (limited to 'protocols/twitter')
| -rw-r--r-- | protocols/twitter/twitter.c | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/protocols/twitter/twitter.c b/protocols/twitter/twitter.c index 692afcd2..57a1ed80 100644 --- a/protocols/twitter/twitter.c +++ b/protocols/twitter/twitter.c @@ -516,8 +516,8 @@ static void twitter_handle_command(struct im_connection *ic, char *message)  		if ((bu = bee_user_by_handle(ic->bee, ic, cmd[1])) &&  		    (tud = bu->data) && tud->last_id) {  			id = tud->last_id; -		} else if ((id = g_ascii_strtoull(cmd[1], NULL, 10)) && -			   (id < TWITTER_LOG_LENGTH) && td->log) { +		} else if (sscanf(cmd[1], "%" G_GUINT64_FORMAT, &id) == 1 && +		           (id < TWITTER_LOG_LENGTH) && td->log) {  			bu = td->log[id].bu;  			if (g_slist_find(ic->bee->users, bu))  				id = td->log[id].id; | 
