shithub: choc

Download patch

ref: 4768d328835635f485f5fb0552b9d25a2ae3cefe
parent: 40fe319b037ff9657c95b19d88ae2cdca6c51362
author: Turo Lamminen <[email protected]>
date: Sat May 2 11:56:04 EDT 2020

strife: Fix const correctness issue in D_IdentifyVersion

--- a/src/strife/d_main.c
+++ b/src/strife/d_main.c
@@ -860,7 +860,7 @@
         // filepath.
         if((p = M_CheckParm("-iwad")) && p < myargc - 1)
         {
-            char   *iwad     = myargv[p + 1];
+            const char *iwad = myargv[p + 1];
             size_t  len      = strlen(iwad) + 1;
             char   *iwadpath = Z_Malloc(len, PU_STATIC, NULL);
             char   *voiceswad;