From afb820202d6c23ec4fff837588bae37993f3050f Mon Sep 17 00:00:00 2001 From: Nichole Mattera <697668+NicholeMattera@users.noreply.github.com> Date: Sat, 2 May 2020 16:34:06 -0400 Subject: [PATCH] Small fix to make sure icon_path is long enough. --- nyx/nyx_gui/frontend/gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);