mirror of
https://github.com/CTCaer/hekate.git
synced 2024-11-22 18:06:40 +00:00
nyx: Allow for big filepaths for archive bit fixer
It also fixes corruptions/hangs when path is bigger than 255 chars
This commit is contained in:
parent
f5040f1e41
commit
76676f3a2e
1 changed files with 3 additions and 1 deletions
|
@ -264,7 +264,7 @@ static lv_res_t _create_window_unset_abit_tool(lv_obj_t *btn)
|
|||
|
||||
lv_obj_t * lb_val = lv_label_create(val, lb_desc);
|
||||
|
||||
char path[256];
|
||||
char *path = malloc(1024);
|
||||
path[0] = 0;
|
||||
|
||||
lv_label_set_static_text(lb_val, "");
|
||||
|
@ -302,6 +302,8 @@ static lv_res_t _create_window_unset_abit_tool(lv_obj_t *btn)
|
|||
lv_label_set_text(lb_desc2, txt_buf);
|
||||
lv_obj_set_width(lb_desc2, lv_obj_get_width(desc2));
|
||||
lv_obj_align(desc2, val, LV_ALIGN_OUT_BOTTOM_RIGHT, 0, 0);
|
||||
|
||||
free(path);
|
||||
}
|
||||
|
||||
// Enable buttons.
|
||||
|
|
Loading…
Reference in a new issue