(string_list.c) Don't use snprintf

This commit is contained in:
twinaphex 2015-06-22 11:49:15 +02:00
parent 5c826a6bdf
commit 726c000981

View File

@ -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++)
{