mirror of
https://github.com/libretro/RetroArch
synced 2025-03-22 07:21:15 +00:00
(core_option_manager_new) rewrite snprintf
This commit is contained in:
parent
f27c8c0c1d
commit
be2d35a1f4
@ -1204,10 +1204,11 @@ core_option_manager_t *core_option_manager_new(
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
address[0] = '\0';
|
size_t _len = strlcpy(address, category_key, sizeof(address));
|
||||||
snprintf(address, sizeof(address),
|
address[_len ] = ':';
|
||||||
"%s:#%s",
|
address[_len+1] = '#';
|
||||||
category_key, option_def->key);
|
address[_len+2] = '\0';
|
||||||
|
strlcat(address, option_def->key, sizeof(address));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!nested_list_add_item(opt->option_map,
|
if (!nested_list_add_item(opt->option_map,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user