Skip to content
Snippets Groups Projects
Commit a9776f7b authored by Marco Z's avatar Marco Z
Browse files

Undoing malloc for S_MusicName, pass music_name instead.

I don't think there's a reason for copying to a new var.
parent 44c7410a
No related branches found
No related tags found
No related merge requests found
......@@ -1606,11 +1606,7 @@ boolean S_MusicPaused(void)
const char *S_MusicName(void)
{
//return music_name;
char *result = (char *)malloc(7);
strncpy(result, music_name, 7);
result[6] = 0;
return result;
return music_name;
}
boolean S_MusicExists(const char *mname, boolean checkMIDI, boolean checkDigi)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment