diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-06-22 09:33:33 +0200 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2017-06-22 09:33:33 +0200 |
commit | bbf8b860747c13a478657b9070c191735d35e00a (patch) | |
tree | 4f38eafda24eb39a40db012be15912d2034d49dc /src/fe-common | |
parent | 02a5d1a00b4f484b4b2422785944e022810bbbb0 (diff) | |
download | irssi-bbf8b860747c13a478657b9070c191735d35e00a.zip |
remove const
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/chat-completion.c | 4 |
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; } |