shithub: choc

Download patch

ref: 134f7f798757e399c05820df5583c52e6f5faadc
parent: 6be9843540b846b328b5b55f8d382f7572791c39
author: Turo Lamminen <[email protected]>
date: Tue Feb 4 08:26:07 EST 2020

doom: Use DEH_snprintf in GetGameName

--- a/src/doom/d_main.c
+++ b/src/doom/d_main.c
@@ -701,8 +701,8 @@
                 I_Error("GetGameName: Failed to allocate new string");
             }
             version = G_VanillaVersionCode();
-            M_snprintf(deh_gamename, gamename_size, deh_sub,
-                       version / 100, version % 100);
+            DEH_snprintf(deh_gamename, gamename_size, banners[i],
+                         version / 100, version % 100);
 
             while (deh_gamename[0] != '\0' && isspace(deh_gamename[0]))
             {