# HG changeset patch # User Daniel Atallah # Date 1286159608 0 # Node ID ab8d9cea5a30c045690a86948aee93770a0b91a4 # Parent 9c8b28dc66564fb64003e0c35af6a9348a4c0402 Deal with the hostname being a substring of the account name prior to the '@' diff -r 9c8b28dc6656 -r ab8d9cea5a30 libpurple/protocols/bonjour/mdns_common.c --- a/libpurple/protocols/bonjour/mdns_common.c Mon Oct 04 00:48:25 2010 +0000 +++ b/libpurple/protocols/bonjour/mdns_common.c Mon Oct 04 02:33:28 2010 +0000 @@ -265,8 +265,8 @@ * That is what this is intended to deal with. */ if ((tmp = strchr(account_name, '@')) - && strstr(account_name, hostname) == ++tmp - && *(tmp + strlen(hostname)) == '\0') + && strstr(tmp, hostname) == (tmp + 1) + && *((tmp + 1) + strlen(hostname)) == '\0') bd->jid = g_strdup(account_name); else { const char *tmp2; @@ -284,4 +284,4 @@ bd->jid = g_string_free(str, FALSE); } -} \ No newline at end of file +}