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)
|
void awardCampaignTrophies(void)
|
||||||
{
|
{
|
||||||
/* add 9 to MAX_NAME_LENGTH to account for "CAMPAIGN_" */
|
char trophyId[MAX_NAME_LENGTH * 2];
|
||||||
char trophyId[MAX_NAME_LENGTH+9];
|
|
||||||
char name[MAX_NAME_LENGTH];
|
char name[MAX_NAME_LENGTH];
|
||||||
int i, len;
|
int i, len;
|
||||||
StarSystem *starSystem;
|
StarSystem *starSystem;
|
||||||
|
|
Loading…
Reference in New Issue