diff options
Diffstat (limited to 'src/login/login.c')
-rw-r--r-- | src/login/login.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/login.c b/src/login/login.c index e5f565644..ec5b2bb7c 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -722,7 +722,7 @@ void login_fromchar_parse_change_pincode(int fd) struct mmo_account acc; if( accounts->load_num(accounts, &acc, RFIFOL(fd,2) ) ) { - strncpy( acc.pincode, (char*)RFIFOP(fd,6), 5 ); + safestrncpy( acc.pincode, (char*)RFIFOP(fd,6), sizeof(acc.pincode) ); acc.pincode_change = ((unsigned int)time( NULL )); accounts->save(accounts, &acc); } |