Use CopyStringFast in FormatImageName

This commit is contained in:
Clément Grégoire
2025-10-24 13:07:29 +02:00
parent fe516e3596
commit 8ccc76c66b

View File

@@ -410,11 +410,8 @@ char* FormatImageName( const char* imageName, uint32_t imageNameLength )
{
// when doing offline symbol resolution, we must store the full path of the dll for the resolving to work
if( s_shouldResolveSymbolsOffline )
{
char* alloc = (char*)tracy_malloc_fast( imageNameLength + 1 );
memcpy( alloc, imageName, imageNameLength );
alloc[imageNameLength] = '\0';
return alloc;
{
return CopyStringFast( imageName, imageNameLength );
}
else
{