changeset 22336:382bc33e8824

Patch from Jorge Villaseor, treat the client id as unsigned so 0x80000000 won't overflow int. References #4908
author Ka-Hing Cheung <khc@hxbc.us>
date Wed, 27 Feb 2008 04:49:20 +0000
parents eb03ec8ea666
children a8c025929245 f61f7e8d897e
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);