mirror of
https://github.com/wolfpld/tracy
synced 2025-04-30 20:53:52 +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++ = '>';
|
*dst++ = '>';
|
||||||
}
|
}
|
||||||
|
|
||||||
end = dst;
|
end = dst-1;
|
||||||
ptr = tmp;
|
ptr = tmp;
|
||||||
dst = buf;
|
dst = buf;
|
||||||
cnt = 0;
|
cnt = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user