changeset 17282:ec50eafd1823

(Plugin partially functional) Fix msim_msg_get() search. Now works: - Logging in Doesn't work: - Sending messages (double-free/corruption crash)
author Jeffrey Connelly <jaconnel@calpoly.edu>
date Fri, 01 Jun 2007 06:17:54 +0000
parents d8afaaf24f34
children 9ecd2bb0ecc1
files libpurple/protocols/myspace/message.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/myspace/message.c	Fri Jun 01 06:11:40 2007 +0000
+++ b/libpurple/protocols/myspace/message.c	Fri Jun 01 06:17:54 2007 +0000
@@ -579,7 +579,7 @@
 	GList *i;
 
 	/* Linear search for the given name. O(n) but n is small. */
-	for (i = g_list_first(msg); i != NULL; i = g_list_next(msg))
+	for (i = g_list_first(msg); i != NULL; i = g_list_next(i))
 	{
 		MsimMessageElement *elem;