From 8cd74e999d628819e9b869e676378e81b563a30d Mon Sep 17 00:00:00 2001 From: Steve Date: Thu, 28 Jan 2016 17:03:23 +0000 Subject: [PATCH] Increase filename length of music. --- src/galaxy/mission.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/galaxy/mission.c b/src/galaxy/mission.c index 510da31..4f88781 100644 --- a/src/galaxy/mission.c +++ b/src/galaxy/mission.c @@ -34,7 +34,7 @@ static void loadEpicData(cJSON *node); void loadMission(char *filename) { cJSON *root; - char *text, music[MAX_NAME_LENGTH]; + char *text, music[MAX_DESCRIPTION_LENGTH]; startSectionTransition(); @@ -65,7 +65,7 @@ void loadMission(char *filename) 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")) {