mirror of
https://github.com/CTCaer/hekate.git
synced 2024-12-23 08:32:04 +00:00
Small fix to make sure icon_path is long enough.
This commit is contained in:
parent
0ce973966f
commit
afb820202d
1 changed files with 1 additions and 1 deletions
|
@ -1586,7 +1586,7 @@ ini_parsing:
|
|||
{
|
||||
img = lv_img_create(launch_ctxt[curr_btn_idx], NULL);
|
||||
|
||||
if (icon_path && !memcmp(icon_path + strlen(icon_path) - 13, "_colorize", 9)) {
|
||||
if (icon_path && strlen(icon_path) > 13 && !memcmp(icon_path + strlen(icon_path) - 13, "_colorize", 9)) {
|
||||
static lv_style_t style;
|
||||
lv_style_copy(&style, &lv_style_plain);
|
||||
style.image.color = lv_color_hsv_to_rgb(n_cfg.themecolor, 100, 100);
|
||||
|
|
Loading…
Reference in a new issue