diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 6ca72cec..2b3ddfc3 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -432,11 +432,11 @@ Worker::Worker( const char* name, const char* program, const std::vectorsecond.c_str()); - AddThreadString(t.first, buf, len); + int len = snprintf( buf, sizeof( buf ), "(%" PRIu64 ") %s", t.first, name->second.c_str() ); + AddThreadString( t.first, buf, len ); } else {