mirror of
https://github.com/wolfpld/tracy.git
synced 2026-08-03 11:59:36 +00:00
Validate size.
This commit is contained in:
@@ -33,6 +33,7 @@ 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';
|
||||
|
||||
Reference in New Issue
Block a user