Mercurial > pidgin.yaz
changeset 31019:ab8d9cea5a30
Deal with the hostname being a substring of the account name prior to the '@'
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Mon, 04 Oct 2010 02:33:28 +0000 |
parents | 9c8b28dc6656 |
children | 03988b6b41dd |
files | libpurple/protocols/bonjour/mdns_common.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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 +}