mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Validate size.
This commit is contained in:
parent
4f052a6b9c
commit
c0f49c648b
@ -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';
|
||||
|
Loading…
Reference in New Issue
Block a user