mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Merge pull request #817 from M4T1A5/fix/worker_add_source_loc
Fix worker AddSourceLocationPayload source file string length calculation
This commit is contained in:
commit
d4a4b62396
@ -3643,7 +3643,8 @@ void Worker::AddSourceLocationPayload( const char* data, size_t sz )
|
||||
const auto func = StoreString( data, end - data );
|
||||
end++;
|
||||
|
||||
data = end + strlen( data );
|
||||
data = end;
|
||||
end = data + strlen( data );
|
||||
const auto source = StoreString( data, end - data );
|
||||
end++;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user