Increase filename length of music.

This commit is contained in:
Steve 2016-01-28 17:03:23 +00:00
parent 58e91e83c0
commit 8cd74e999d
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ static void loadEpicData(cJSON *node);
void loadMission(char *filename) void loadMission(char *filename)
{ {
cJSON *root; cJSON *root;
char *text, music[MAX_NAME_LENGTH]; char *text, music[MAX_DESCRIPTION_LENGTH];
startSectionTransition(); startSectionTransition();
@ -65,7 +65,7 @@ void loadMission(char *filename)
loadLocations(cJSON_GetObjectItem(root, "locations")); loadLocations(cJSON_GetObjectItem(root, "locations"));
STRNCPY(music, cJSON_GetObjectItem(root, "music")->valuestring, MAX_NAME_LENGTH); STRNCPY(music, cJSON_GetObjectItem(root, "music")->valuestring, MAX_DESCRIPTION_LENGTH);
if (cJSON_GetObjectItem(root, "epic")) if (cJSON_GetObjectItem(root, "epic"))
{ {