mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-07 05:49:18 +00:00
Fix off-by-one.
The null terminator was included during the string copy. The destination pointer points to one-beyond-the-end, and has to be decreased.
This commit is contained in:
@@ -860,7 +860,7 @@ const char* View::ShortenZoneName( const char* name, ImVec2& tsz, float zsz ) co
|
||||
*dst++ = '>';
|
||||
}
|
||||
|
||||
end = dst;
|
||||
end = dst-1;
|
||||
ptr = tmp;
|
||||
dst = buf;
|
||||
cnt = 0;
|
||||
|
||||
Reference in New Issue
Block a user