diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index c593c695..4e6b7ee8 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -113,8 +113,7 @@ const char* GetThreadName( uint64_t id ) { if( ptr->id == id ) { - strcpy( buf, ptr->name ); - return buf; + return ptr->name; } ptr = ptr->next; }