# HG changeset patch # User Ka-Hing Cheung # Date 1204087760 0 # Node ID 382bc33e88249aba54bbc668e180dfa2a095fc5c # Parent eb03ec8ea666d0603d77c501954779851a2017ab Patch from Jorge Villaseor, treat the client id as unsigned so 0x80000000 won't overflow int. References #4908 diff -r eb03ec8ea666 -r 382bc33e8824 libpurple/protocols/msn/notification.c --- a/libpurple/protocols/msn/notification.c Wed Feb 27 04:36:23 2008 +0000 +++ b/libpurple/protocols/msn/notification.c Wed Feb 27 04:49:20 2008 +0000 @@ -1091,7 +1091,7 @@ PurpleConnection *gc; MsnUser *user; MsnObject *msnobj; - int clientid; + unsigned long clientid; int wlmclient; const char *state, *passport, *friendly, *old_friendly; @@ -1126,7 +1126,7 @@ } } - clientid = atoi(cmd->params[4]); + clientid = strtoul(cmd->params[4], NULL, 0); user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE); msn_user_set_state(user, state);