From 56bd01dfd1b59945e41123b0edafd012dabf0484 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 31 Mar 2018 01:38:57 +0200 Subject: [PATCH] Don't copy thread name needlessly. --- common/TracySystem.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; }