mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(string_list.c) Don't use snprintf
This commit is contained in:
parent
5c826a6bdf
commit
726c000981
@ -256,7 +256,8 @@ bool string_list_find_elem_prefix(const struct string_list *list,
|
||||
if (!list)
|
||||
return false;
|
||||
|
||||
snprintf(prefixed, sizeof(prefixed), "%s%s", prefix, elem);
|
||||
strlcpy(prefixed, prefix, sizeof(prefixed));
|
||||
strlcat(prefixed, elem, sizeof(prefixed));
|
||||
|
||||
for (i = 0; i < list->size; i++)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user