Fix incorrect lines in .cht files for 'cheat10' and above (#14436)

This commit is contained in:
Bobby Smith 2022-09-25 17:15:07 +02:00 committed by GitHub
parent 403eaef516
commit 440264778d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -199,7 +199,7 @@ bool cheat_manager_save(
char desc_key[128];
char code_key[128];
char enable_key[128];
char formatted_number[8];
char formatted_number[12];
formatted_number[0] = '\0';
snprintf(formatted_number, sizeof(formatted_number), "cheat%u_", i);