Merge pull request #842 from ailin-nemui/themeoob

Fix oob in escaped theme string
This commit is contained in:
ailin-nemui 2018-02-08 22:25:03 +01:00 committed by GitHub
commit 7c31f7adc5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -485,7 +485,7 @@ static char *theme_format_expand_abstract(THEME_REC *theme, const char **formatp
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);