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:
David Anderson 2008-03-01 06:07:16 +00:00
parent f30d3d1901
commit 1e6b1c92cc

View File

@ -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++;