mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Copy proper amount of memory.
This commit is contained in:
parent
366153a94f
commit
9fc76990e1
@ -6211,7 +6211,7 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint
|
||||
if( it == m_data.revParentFrameMap.end() )
|
||||
{
|
||||
auto frame = m_slab.Alloc<CallstackFrame>( fxsz-1 );
|
||||
memcpy( frame, cfdata, fxsz * sizeof( CallstackFrame ) );
|
||||
memcpy( frame, cfdata, ( fxsz-1 ) * sizeof( CallstackFrame ) );
|
||||
auto frameData = m_slab.AllocInit<CallstackFrameData>();
|
||||
frameData->data = frame;
|
||||
frameData->size = fxsz - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user