summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
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;
}