Don't copy thread name needlessly.

This commit is contained in:
Bartosz Taudul 2018-03-31 01:38:57 +02:00
parent 780e838785
commit 56bd01dfd1

View File

@ -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;
}