mirror of
https://github.com/libretro/RetroArch
synced 2025-03-20 10:20:51 +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
|
||||
{
|
||||
address[0] = '\0';
|
||||
snprintf(address, sizeof(address),
|
||||
"%s:#%s",
|
||||
category_key, option_def->key);
|
||||
size_t _len = strlcpy(address, category_key, sizeof(address));
|
||||
address[_len ] = ':';
|
||||
address[_len+1] = '#';
|
||||
address[_len+2] = '\0';
|
||||
strlcat(address, option_def->key, sizeof(address));
|
||||
}
|
||||
|
||||
if (!nested_list_add_item(opt->option_map,
|
||||
|
Loading…
x
Reference in New Issue
Block a user