1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-29 04:45:57 -04:00

remove const

This commit is contained in:
ailin-nemui 2017-06-22 09:33:33 +02:00
parent 02a5d1a00b
commit bbf8b86074

View File

@ -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;
}