foxygit / doom Log in
commit fadd13284982cc1ab637f6069aceefa48fb46cab
Author:     Turo Lamminen <turol@iki.fi>
AuthorDate: Mon Feb 1 15:43:53 2021 +0200
Commit:     Turo Lamminen <turol@iki.fi>
CommitDate: Tue Aug 24 18:11:02 2021 +0300

    Fix const correctness issue
---
 src/m_argv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/m_argv.c b/src/m_argv.c
index cefdd083..494fa47b 100644
--- a/src/m_argv.c
+++ b/src/m_argv.c
@@ -268,7 +268,7 @@ void M_FindResponseFile(void)
         // 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]);
     }
 }