1
0
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:
Bartosz Taudul 2022-08-15 15:12:20 +02:00
parent 0c6acf3c2e
commit 60f82dfd2e
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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;