1
0
Fork 0
mirror of https://github.com/CTCaer/hekate.git synced 2024-11-22 18:06:40 +00:00

Small fix to make sure icon_path is long enough.

This commit is contained in:
Nichole Mattera 2020-05-02 16:34:06 -04:00
parent 0ce973966f
commit afb820202d

View file

@ -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);