shithub: choc

Download patch

ref: b7368be6c4718a04c46b4196290279cf8899f848
parent: 263a6fef37d9b6151ead74ed499cb2972877951b
author: Turo Lamminen <turol@iki.fi>
date: Tue Feb 4 08:21:40 EST 2020

doom: Always return an allocated string from GetGameName

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -718,7 +718,7 @@
         }
     }
 
-    return gamename;
+    return M_StringDuplicate(gamename);
 }
 
 static void SetMissionForPackName(const char *pack_name)