diff --git a/libretro-common/string/string_list.c b/libretro-common/string/string_list.c index b9c26cf713..d55b6fcfd4 100644 --- a/libretro-common/string/string_list.c +++ b/libretro-common/string/string_list.c @@ -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++) {