Fix incomplete copy in tm_tags_merge() that lead to crashes
This commit is contained in:
parent
c7fa1fd9e2
commit
2f94aa373e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user