mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 07:48:46 -04:00
util: Fix bug with darray_erase_range
Did not multiply the element size for the memory move operation.
This commit is contained in:
1 parent
a07ebf44e6
commit
661d53067a
1 file changed
+1
-1
@@ -337,7 +337,7 @@ static inline void darray_erase_range(const size_t element_size,
|
||||
if (move_count)
|
||||
memmove(darray_item(element_size, dst, start),
|
||||
darray_item(element_size, dst, end),
|
||||
move_count);
|
||||
move_count * element_size);
|
||||
|
||||
dst->num -= count;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user