From 6c1d014aa37bd930ba196a2ddadf366d81af6e9b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Sep 2017 21:48:21 +0200 Subject: [PATCH] Fix implementation errors. --- common/TracySystem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index edf496d9..dbc2f0da 100755 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -2,6 +2,7 @@ # include #else # include +# include # include #endif @@ -58,9 +59,9 @@ void SetThreadName( std::thread& thread, const char* name ) char buf[16]; memcpy( buf, name, 15 ); buf[15] = '\0'; - pthread_setname_np( thread.native_handle(), sz ); + pthread_setname_np( thread.native_handle(), buf ); } #endif } -} \ No newline at end of file +}