--- a/pidgin/plugins/cap/cap.c Wed Jul 10 01:42:28 2013 +0530 +++ b/pidgin/plugins/cap/cap.c Wed Jul 10 01:57:42 2013 +0530 @@ -439,7 +439,7 @@ /* drawing-tooltip */ static void drawing_tooltip(PurpleBListNode *node, GString *text, gboolean full) { if(node->type == PURPLE_BLIST_BUDDY_NODE) { - PurpleBuddy *buddy = (PurpleBuddy *)node; + PurpleBuddy *buddy = PURPLE_BUDDY(node); CapStatistics *stats = get_stats_for(buddy); /* get the probability that this buddy will respond and add to the tooltip */ if(stats->prediction->probability >= 0.0) {