changeset 19188:b775a0bff96c

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.
author Tim Ringenbach <marv@pidgin.im>
date Wed, 11 Jul 2007 15:21:39 +0000
parents cdb0fbe5de7b
children 07413ddcd49c
files libpurple/protocols/yahoo/yahoo_packet.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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];