util: Fix bug with darray_erase_range

Did not multiply the element size for the memory move operation.
This commit is contained in:
jp9000 committed 2014-10-22 20:32:50 -07:00
1 parent a07ebf44e6
commit 661d53067a
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}