mirror of
https://bitbucket.org/seefoe/src.git
synced 2026-07-31 01:15:45 -04:00
fix another memcpy buffer issue
This commit is contained in:
@@ -141,7 +141,7 @@ void CallStackCollectorNamespace::Node::addCallStack(uint32 * const callStack)
|
||||
{
|
||||
//-- Create new callstack
|
||||
uint32 * const newCallStack = new uint32[CALLSTACK_DEPTH];
|
||||
memcpy(newCallStack, callStack, (sizeof(uint32) * CALLSTACK_DEPTH));
|
||||
memcpy(newCallStack, callStack, (*newCallStack));
|
||||
|
||||
CallStackEntry callStackEntry;
|
||||
callStackEntry.m_callStack = newCallStack;
|
||||
|
||||
Reference in New Issue
Block a user