mirror of
https://github.com/irssi/irssi.git
synced 2025-04-25 20:41:23 -05:00
Merge pull request #842 from ailin-nemui/themeoob
Fix oob in escaped theme string (cherry picked from commit 7c31f7adc5685074d25a32737c9743089850675c)
This commit is contained in:
parent
191b01a70e
commit
8424c1502a
@ -473,7 +473,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme,
|
|||||||
str = g_string_new(NULL);
|
str = g_string_new(NULL);
|
||||||
p = ret;
|
p = ret;
|
||||||
while (*p != '\0') {
|
while (*p != '\0') {
|
||||||
if (*p == '\\') {
|
if (*p == '\\' && p[1] != '\0') {
|
||||||
int chr;
|
int chr;
|
||||||
p++;
|
p++;
|
||||||
chr = expand_escape(&p);
|
chr = expand_escape(&p);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user