Mercurial > pidgin.yaz
diff src/protocols/jabber/si.c @ 12935:d9c53c5f5912
[gaim-migrate @ 15288]
Fix a bug noted in SF Patch #1293248. We're building an invalid Jabber ID such as: user@server.tld/Resource/Resource
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Thu, 19 Jan 2006 03:43:30 +0000 |
parents | 8e3b85fe4a55 |
children | 0f3122ce84db |
line wrap: on
line diff
--- a/src/protocols/jabber/si.c Thu Jan 19 02:44:07 2006 +0000 +++ b/src/protocols/jabber/si.c Thu Jan 19 03:43:30 2006 +0000 @@ -638,9 +638,12 @@ /* XXX: for now, send to the first resource available */ if(g_list_length(jb->resources) >= 1) { + char **who_v = g_strsplit(xfer->who, "/"); char *who; + jbr = jabber_buddy_find_resource(jb, NULL); - who = g_strdup_printf("%s/%s", xfer->who, jbr->name); + who = g_strdup_printf("%s/%s", who_v[0], jbr->name); + g_strfreev(who_v); g_free(xfer->who); xfer->who = who; jabber_disco_info_do(jsx->js, who,