Set trophyId array size to MAX_NAME_LENGTH * 2.

This commit is contained in:
Steve 2021-12-06 21:44:12 +00:00
parent 7023a48723
commit fc09a7d598
1 changed files with 1 additions and 2 deletions

View File

@ -426,8 +426,7 @@ void awardStatsTrophies(void)
void awardCampaignTrophies(void)
{
/* add 9 to MAX_NAME_LENGTH to account for "CAMPAIGN_" */
char trophyId[MAX_NAME_LENGTH+9];
char trophyId[MAX_NAME_LENGTH * 2];
char name[MAX_NAME_LENGTH];
int i, len;
StarSystem *starSystem;