Set trophyId array size to MAX_NAME_LENGTH * 2.
This commit is contained in:
parent
7023a48723
commit
fc09a7d598
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue