Skip to content

Commit 8ccc76c

Browse files
committed
Use CopyStringFast in FormatImageName
1 parent fe516e3 commit 8ccc76c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎public/client/TracyCallstack.cpp‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,8 @@ char* FormatImageName( const char* imageName, uint32_t imageNameLength )
410410
{
411411
// when doing offline symbol resolution, we must store the full path of the dll for the resolving to work
412412
if( s_shouldResolveSymbolsOffline )
413-
{
414-
char* alloc = (char*)tracy_malloc_fast( imageNameLength + 1 );
415-
memcpy( alloc, imageName, imageNameLength );
416-
alloc[imageNameLength] = '\0';
417-
return alloc;
413+
{
414+
return CopyStringFast( imageName, imageNameLength );
418415
}
419416
else
420417
{

0 commit comments

Comments
 (0)