Merge pull request #842 from ailin-nemui/themeoob

Fix oob in escaped theme string

(cherry picked from commit 7c31f7adc5685074d25a32737c9743089850675c)
This commit is contained in:
ailin-nemui 2018-02-08 22:25:03 +01:00
parent 957cbe7561
commit b85c6fe9fe

View File

@ -473,7 +473,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme,
str = g_string_new(NULL);
p = ret;
while (*p != '\0') {
if (*p == '\\') {
if (*p == '\\' && p[1] != '\0') {
int chr;
p++;
chr = expand_escape(&p);