# HG changeset patch # User Tim Ringenbach # Date 1184167299 0 # Node ID b775a0bff96c00f406c7b4d09fd573d107368b70 # Parent cdb0fbe5de7b41f6e5e3cc47d67c49347baf5f2a Reverse the key/value pairs as they go out, so that they're in the correct order. This is needed because we use prepend instead of append when building the list, and we already use reverse on the receiving side. diff -r cdb0fbe5de7b -r b775a0bff96c libpurple/protocols/yahoo/yahoo_packet.c --- a/libpurple/protocols/yahoo/yahoo_packet.c Sat Aug 11 13:37:14 2007 +0000 +++ b/libpurple/protocols/yahoo/yahoo_packet.c Wed Jul 11 15:21:39 2007 +0000 @@ -223,6 +223,11 @@ GSList *l = pkt->hash; int pos = 0; + /* This is only called from one place, and the list is + * always backwards */ + + l = g_slist_reverse(l); + while (l) { struct yahoo_pair *pair = l->data; gchar buf[100];