--- a/libpurple/protocols/oscar/userinfo.c Tue May 06 16:15:03 2014 +0200 +++ b/libpurple/protocols/oscar/userinfo.c Tue May 06 18:28:56 2014 +0200 @@ -337,9 +337,9 @@ if ((bi != NULL) && (bi->ipaddr != 0)) { tmp = g_strdup_printf("%u.%u.%u.%u", - 0xFF & (bi->ipaddr & 0xff000000) >> 24, - 0xFF & (bi->ipaddr & 0x00ff0000) >> 16, - 0xFF & (bi->ipaddr & 0x0000ff00) >> 8, + 0xFF & ((bi->ipaddr & 0xff000000) >> 24), + 0xFF & ((bi->ipaddr & 0x00ff0000) >> 16), + 0xFF & ((bi->ipaddr & 0x0000ff00) >> 8), 0xFF & (bi->ipaddr & 0x000000ff)); oscar_user_info_add_pair(user_info, _("IP Address"), tmp); g_free(tmp); @@ -401,9 +401,9 @@ oscar_user_info_convert_and_add(account, od, user_info, _("Nick"), info->nick); if ((bi != NULL) && (bi->ipaddr != 0)) { char *tstr = g_strdup_printf("%u.%u.%u.%u", - 0xFF & (bi->ipaddr & 0xff000000) >> 24, - 0xFF & (bi->ipaddr & 0x00ff0000) >> 16, - 0xFF & (bi->ipaddr & 0x0000ff00) >> 8, + 0xFF & ((bi->ipaddr & 0xff000000) >> 24), + 0xFF & ((bi->ipaddr & 0x00ff0000) >> 16), + 0xFF & ((bi->ipaddr & 0x0000ff00) >> 8), 0xFF & (bi->ipaddr & 0x000000ff)); purple_notify_user_info_add_pair(user_info, _("IP Address"), tstr); g_free(tstr);