From b85c6fe9febabec5326ad7767ebd60eceb546869 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 8 Feb 2018 22:25:03 +0100 Subject: [PATCH] Merge pull request #842 from ailin-nemui/themeoob Fix oob in escaped theme string (cherry picked from commit 7c31f7adc5685074d25a32737c9743089850675c) --- src/fe-common/core/themes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index cb1cce8f..ed4afb72 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -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);