fixed amb1485 - memory corruption in ShiftArrayUp() / CellArray::insert_at()
--HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401909
This commit is contained in:
parent
f30d3d1901
commit
1e6b1c92cc
@ -118,7 +118,7 @@ public:
|
||||
/* move everything up */
|
||||
cell_t *src = at(index);
|
||||
cell_t *dst = at(index + 1);
|
||||
memmove(dst, src, sizeof(cell_t) * m_BlockSize * m_Size);
|
||||
memmove(dst, src, sizeof(cell_t) * m_BlockSize * (m_Size-index));
|
||||
|
||||
m_Size++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user