shithub: choc

Download patch

ref: 0e529f14089be1db45e4747df5f774d7d63035ce
parent: b83a87dd937fe2fbb9d7a152b3ad07bef149a88d
author: Turo Lamminen <turotl@gmail.com>
date: Sat Dec 8 11:06:48 EST 2018

heretic: Fix const correctness issue in GetStringByOffset and DEH_TextStart

--- a/src/heretic/deh_htext.c
+++ b/src/heretic/deh_htext.c
@@ -688,7 +688,7 @@
     return false;
 }
 
-static boolean GetStringByOffset(unsigned int offset, char **result)
+static boolean GetStringByOffset(unsigned int offset, const char **result)
 {
     int i;
 
@@ -767,7 +767,7 @@
 static void *DEH_TextStart(deh_context_t *context, char *line)
 {
     char *repl_text;
-    char *orig_text;
+    const char *orig_text;
     int orig_offset, repl_len;
     int i;