mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
remove const
This commit is contained in:
parent
02a5d1a00b
commit
bbf8b86074
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user