mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +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:
parent
0c6acf3c2e
commit
60f82dfd2e
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user