mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Use strlen to calculate end of string in ShortenZoneName().
This commit is contained in:
parent
3589b46fab
commit
f04d844515
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user