summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2017-06-22 09:33:33 +0200
committerailin-nemui <ailin-nemui@users.noreply.github.com>2017-06-22 09:33:33 +0200
commitbbf8b860747c13a478657b9070c191735d35e00a (patch)
tree4f38eafda24eb39a40db012be15912d2034d49dc /src/fe-common
parent02a5d1a00b4f484b4b2422785944e022810bbbb0 (diff)
downloadirssi-bbf8b860747c13a478657b9070c191735d35e00a.zip
remove const
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/chat-completion.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-common/core/chat-completion.c b/src/fe-common/core/chat-completion.c
index 1c9db28e..97cd0565 100644
--- a/src/fe-common/core/chat-completion.c
+++ b/src/fe-common/core/chat-completion.c
@@ -1041,9 +1041,9 @@ static char *expand_escapes(const char *line, SERVER_REC *server,
event to handle it (or actually the text before
the newline..) */
if (prev != line) {
- const char *prev_line = g_strndup(prev, (line - prev) - 1);
+ char *prev_line = g_strndup(prev, (line - prev) - 1);
event_text(prev_line, server, item);
- g_free((char *)prev_line);
+ g_free(prev_line);
prev = line + 1;
ptr = ret;
}