Drop string copy length asserts.

These might now truncate data.
This commit is contained in:
Bartosz Taudul 2022-07-20 01:03:06 +02:00
parent 8ccfe93044
commit 5e0eb7e26b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -11,7 +11,6 @@ namespace tracy
static inline char* CopyString( const char* src, size_t sz )
{
assert( strlen( src ) == sz );
auto dst = (char*)tracy_malloc( sz + 1 );
memcpy( dst, src, sz );
dst[sz] = '\0';
@ -29,7 +28,6 @@ static inline char* CopyString( const char* src )
static inline char* CopyStringFast( const char* src, size_t sz )
{
assert( strlen( src ) == sz );
auto dst = (char*)tracy_malloc_fast( sz + 1 );
memcpy( dst, src, sz );
dst[sz] = '\0';