From 726c000981140b7ebc84cdcf565566242aebd152 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 22 Jun 2015 11:49:15 +0200 Subject: [PATCH] (string_list.c) Don't use snprintf --- libretro-common/string/string_list.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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++) {