Corrected a compile warning on GCC 8 (#4263)

* Fixes #4158.
Thanks to @gengstergile!
This commit is contained in:
Aleos
2019-07-25 09:56:34 -04:00
committed by GitHub
parent 3caf66870f
commit 3dd388ac66

View File

@@ -290,7 +290,7 @@ int chclif_parse_pincode_setnew( int fd, struct char_session_data* sd ){
if( pincode_allowed(newpin) ){
chlogif_pincode_notifyLoginPinUpdate( sd->account_id, newpin );
strncpy( sd->pincode, newpin, strlen( newpin ) );
strncpy( sd->pincode, newpin, sizeof( newpin ) );
chclif_pincode_sendstate( fd, sd, PINCODE_PASSED );
}else{