commit 0e529f14089be1db45e4747df5f774d7d63035ce
Author: Turo Lamminen <turotl@gmail.com>
AuthorDate: Sat Dec 8 16:06:48 2018 +0200
Commit: Turo Lamminen <turotl@gmail.com>
CommitDate: Sat Dec 8 16:15:57 2018 +0200
heretic: Fix const correctness issue in GetStringByOffset and DEH_TextStart
---
src/heretic/deh_htext.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/heretic/deh_htext.c b/src/heretic/deh_htext.c
index fe0dc663..bb2eadef 100644
--- a/src/heretic/deh_htext.c
+++ b/src/heretic/deh_htext.c
@@ -688,7 +688,7 @@ static boolean StringIsUnsupported(unsigned int offset)
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 SuggestOtherVersions(unsigned int offset)
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;