(menu/drivers/zarch.c) Use strlcpy instead of strncpy
This commit is contained in:
parent
b4e872476b
commit
28bb5295f7
|
@ -805,8 +805,8 @@ static int zarch_zui_render_lay_root_load(zui_t *zui, zui_tabbed_t *tabbed)
|
||||||
|
|
||||||
zui->pick_cores = NULL;
|
zui->pick_cores = NULL;
|
||||||
zui->pick_supported = 0;
|
zui->pick_supported = 0;
|
||||||
strncpy(zui->pick_content,
|
strlcpy(zui->pick_content,
|
||||||
path, sizeof(zui->pick_content)-1);
|
path, sizeof(zui->pick_content));
|
||||||
|
|
||||||
core_info_ctl(CORE_INFO_CTL_LIST_GET, &list);
|
core_info_ctl(CORE_INFO_CTL_LIST_GET, &list);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue