changeset 22338:a298447b2d66

Specify the base to convert from to prevent interpreting 0-prefixed client ids as octal (just in case MS decide to send them like that...)
author Stu Tomlinson <stu@nosnilmot.com>
date Wed, 27 Feb 2008 12:30:48 +0000
parents a8c025929245
children 143091589795
files libpurple/protocols/msn/notification.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/notification.c	Wed Feb 27 09:18:06 2008 +0000
+++ b/libpurple/protocols/msn/notification.c	Wed Feb 27 12:30:48 2008 +0000
@@ -1126,7 +1126,7 @@
 		}
 	}
 
-	clientid = strtoul(cmd->params[4], NULL, 0);
+	clientid = strtoul(cmd->params[4], NULL, 10);
 	user->mobile = (clientid & MSN_CLIENT_CAP_MSNMOBILE);
 
 	msn_user_set_state(user, state);