1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08: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
+1 -3
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;