Fix incomplete copy in tm_tags_merge() that lead to crashes

This commit is contained in:
Colomban Wendling 2012-05-25 19:44:17 +02:00
parent c7fa1fd9e2
commit 2f94aa373e

View File

@ -600,7 +600,7 @@ gboolean tm_tags_merge(GPtrArray *tags_array, gsize orig_len,
tags_array->pdata[i] = (cmp >= 0) ? *a-- : *b--;
if (a < tags_array->pdata)
{
memcpy(tags_array->pdata, copy, b - copy);
memcpy(tags_array->pdata, copy, (b - copy) * sizeof(gpointer));
break;
}
if (b < copy)