Fix #7136: Wrong categorisation of objects

Regression introduced in DuplicateArray when converting CopyArray to memcpy
This commit is contained in:
Ted John 2018-02-06 18:19:10 +00:00
parent 0fc0d16e85
commit fbf0243aa3
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ namespace Memory
static T * DuplicateArray(const T * src, size_t count)
{
T * result = AllocateArray<T>(count);
return (T *)memcpy(result, src, count);
return (T *)memcpy(result, src, count * sizeof(T));
}
template<typename T>