1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Use strlen to calculate end of string in ShortenZoneName().

This commit is contained in:
Bartosz Taudul 2024-06-12 23:54:25 +02:00
parent 3589b46fab
commit f04d844515
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -25,9 +25,7 @@ const char* ShortenZoneName( ShortenName type, const char* name, ImVec2& tsz, fl
static char buf[64*1024];
char tmp[64*1024];
auto end = name;
while( *end ) end++;
auto end = name + strlen( name );
auto ptr = name;
auto dst = tmp;
int cnt = 0;