im.pidgin.pidgin: 64e9bf80895d2671f0a42fecc17e3ba895b41426
khc at pidgin.im
khc at pidgin.im
Tue Feb 26 23:56:04 EST 2008
-----------------------------------------------------------------
Revision: 64e9bf80895d2671f0a42fecc17e3ba895b41426
Ancestor: c22a0a8c40e6d75378460f6a6bae6c588a5486ab
Author: khc at pidgin.im
Date: 2008-02-27T04:49:20
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/64e9bf80895d2671f0a42fecc17e3ba895b41426
Modified files:
libpurple/protocols/msn/notification.c
ChangeLog:
Patch from Jorge Villaseñor, treat the client id as unsigned so 0x80000000
won't overflow int. References #4908
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/notification.c a381136b6a41d2e07e8deb4c4ca5c6c4b3d8a395
+++ libpurple/protocols/msn/notification.c dc532ef60a0f287c6f8c6cfa002896455f8eb7bd
@@ -1091,7 +1091,7 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand
PurpleConnection *gc;
MsnUser *user;
MsnObject *msnobj;
- int clientid;
+ unsigned long clientid;
int wlmclient;
const char *state, *passport, *friendly, *old_friendly;
@@ -1126,7 +1126,7 @@ nln_cmd(MsnCmdProc *cmdproc, MsnCommand
}
}
- 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);
More information about the Commits
mailing list