1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use strlen instead of pointer walking in the rest of places.

This commit is contained in:
Bartosz Taudul
2024-06-16 18:20:16 +02:00
parent 9f0f3a7218
commit be40c1e38e
2 changed files with 3 additions and 6 deletions
+1 -2
View File
@@ -901,8 +901,7 @@ char* NormalizePath( const char* path )
if( path[0] != '/' ) return nullptr;
const char* ptr = path;
const char* end = path;
while( *end ) end++;
const char* end = path + strlen( path );
char* res = (char*)tracy_malloc( end - ptr + 1 );
size_t rsz = 0;