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 +}