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 ) if( ptr->id == id )
{ {
strcpy( buf, ptr->name ); return ptr->name;
return buf;
} }
ptr = ptr->next; ptr = ptr->next;
} }