Fix regression

This commit is contained in:
libretroadmin 2023-07-17 17:49:49 +02:00
parent 55996bc9b6
commit 8aa0679cbd

View File

@ -270,9 +270,9 @@ void string_list_join_concat(char *buffer, size_t size,
for (i = 0; i < list->size; i++)
{
size_t _len = strlcat(buffer, list->elems[i].data, size);
strlcat(buffer, list->elems[i].data, size);
if ((i + 1) < list->size)
strlcpy(buffer + _len, delim, size - _len);
strlcat(buffer, delim, size);
}
}