changeset 10122:1d3c9da4929f

[gaim-migrate @ 11159] someone who knows something about napster (and cares) should maybe see if this is right. it looks like an easy way to cause a crash right now committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 19 Oct 2004 03:57:22 +0000
parents bde7418a2573
children 1369e3ae9c9d
files src/protocols/napster/napster.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/protocols/napster/napster.c	Tue Oct 19 02:00:12 2004 +0000
+++ b/src/protocols/napster/napster.c	Tue Oct 19 03:57:22 2004 +0000
@@ -289,7 +289,9 @@
 		break;
 
 	case 202: /* MSG_SERVER_SEARCH_END */
+		res = g_strsplit(buf, " ", 0);
 		gaim_prpl_got_user_status(account, res[0], "offline", NULL);
+		g_strfreev(res);
 		break;
 
 	case 205: /* MSG_CLIENT_PRIVMSG */