diff --git a/nyx/nyx_gui/frontend/gui.c b/nyx/nyx_gui/frontend/gui.c index c0a5429..155a5c2 100644 --- a/nyx/nyx_gui/frontend/gui.c +++ b/nyx/nyx_gui/frontend/gui.c @@ -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);