Fri, 04 Apr 2014 23:59:34 +0200
Smileys: fix parsing with more than two smiley lists
| libpurple/smiley-parser.c | file | annotate | diff | comparison | revisions |
--- a/libpurple/smiley-parser.c Fri Apr 04 23:42:11 2014 +0200 +++ b/libpurple/smiley-parser.c Fri Apr 04 23:59:34 2014 +0200 @@ -92,13 +92,13 @@ tries = &tries_remote; if (custom_trie != NULL) { if (tries) - tries->next = &tries_custom; + g_slist_last(tries)->next = &tries_custom; else tries = &tries_custom; } if (theme_trie != NULL) { if (tries) - tries->next = &tries_theme; + g_slist_last(tries)->next = &tries_theme; else tries = &tries_theme; }