shithub: choc

Download patch

ref: fadd13284982cc1ab637f6069aceefa48fb46cab
parent: f810d5df1d008c6a43057302695ece3d81f6b226
author: Turo Lamminen <turol@iki.fi>
date: Mon Feb 1 10:43:53 EST 2021

Fix const correctness issue

--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -268,7 +268,7 @@
         // the loop we'll ignore it. Since some parameters stop reading when
         // an argument beginning with a '-' is encountered, we keep something
         // that starts with a '-'.
-        myargv[i] = "-_";
+        myargv[i] = M_StringDuplicate("-_");
         LoadResponseFile(i + 1, myargv[i + 1]);
     }
 }