diff options
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c index a638248..56fda9d 100644 --- a/src/main.c +++ b/src/main.c @@ -5,7 +5,7 @@ int Difficulty = 1; atomic_int Ticks = 0; bool GameGoing = true; -char *VersionString; +char VersionString[256]; mtx_t AudioQueueBeingModified; @@ -105,7 +105,7 @@ int main() { SetWindowMinSize(1280, 720); //Init Variables - strcpy(VersionString, "Version 0.2 - AEOLUS"); + strncpy(VersionString, "Version 0.2 - AEOLUS", sizeof(VersionString)); //Populate Audio Queue for(unsigned int i = 0; i < 20; i++) { @@ -137,6 +137,7 @@ int main() { GameGoing = false; // Make sure the game is going to end. thrd_join(AudioThread, NULL); + thrd_join(InternalClock, NULL); CloseWindow(); return(0); } |