From bbf8b860747c13a478657b9070c191735d35e00a Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 22 Jun 2017 09:33:33 +0200 Subject: [PATCH] remove const --- src/fe-common/core/chat-completion.c | 4 ++-- 1 file 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; }