From 84e8f1872f0f00d6f82d6fe85974bb1f37247c53 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Thu, 14 Mar 2013 20:15:07 -0300 Subject: Fixed Pin Code Feature Now cross-platform, and stable ( after fixing I tested it a couple dozen times ). Special Thanks to Yommy for providing me with his packet list, without it I would have never figured what was wrong with it. Special Thanks to Jeroen who reported a inconsistency on the feature when used on windows. Signed-off-by: shennetsind --- src/login/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/login') diff --git a/src/login/login.c b/src/login/login.c index c16cce342..dfa67d932 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -921,7 +921,7 @@ int parse_fromchar(int fd) if( accounts->load_num(accounts, &acc, RFIFOL(fd,2) ) ) { strncpy( acc.pincode, (char*)RFIFOP(fd,6), 5 ); - acc.pincode_change = time( NULL ); + acc.pincode_change = ((unsigned int)time( NULL )); accounts->save(accounts, &acc); } RFIFOSKIP(fd,11); -- cgit v1.2.3-60-g2f50