diff --git a/common/TracySystem.cpp b/common/TracySystem.cpp index 27297ea8..71f720ef 100644 --- a/common/TracySystem.cpp +++ b/common/TracySystem.cpp @@ -180,8 +180,14 @@ const char* GetThreadName( uint64_t id ) # endif if ( ( fd = open( path, O_RDONLY ) ) > 0) { int len = read( fd, buf, 255 ); - if ( len > 0 ) + if( len > 0 ) + { buf[len] = 0; + if( len > 1 && buf[len-1] == '\n' ) + { + buf[len-1] = 0; + } + } close( fd ); } # ifndef __ANDROID__