diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-02-08 22:25:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-08 22:25:03 +0100 |
commit | 7c31f7adc5685074d25a32737c9743089850675c (patch) | |
tree | eac1eb67177274285707d9b631b4556d524c3cb9 | |
parent | 02712942e033c467da1c473c34fb4d631e0a0d23 (diff) | |
parent | e32e9d63c67ab95ef0576154680a6c52334b97af (diff) | |
download | irssi-7c31f7adc5685074d25a32737c9743089850675c.zip |
Merge pull request #842 from ailin-nemui/themeoob
Fix oob in escaped theme string
-rw-r--r-- | src/fe-common/core/themes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index acb5d1c7..5a817daa 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -485,7 +485,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme, const char **formatp str = g_string_new(NULL); p = ret; while (*p != '\0') { - if (*p == '\\') { + if (*p == '\\' && p[1] != '\0') { int chr; p++; chr = expand_escape(&p); |