Use strzcpy in client library.

This commit is contained in:
Bartosz Taudul
2026-07-31 23:15:57 +02:00
parent 7ee384630b
commit c136232c97
3 changed files with 9 additions and 12 deletions

View File

@@ -8,6 +8,7 @@
#include "TracyFastVector.hpp"
#include "TracyStringHelpers.hpp"
#include "../common/TracyAlloc.hpp"
#include "../common/TracyString.hpp"
#include "../common/TracySystem.hpp"
@@ -1461,8 +1462,7 @@ static const char* DecodeCallstackPtrFastExternal( uint64_t ptr )
}
if( symname )
{
strncpy( ret, symname, sizeof( ret ) - 1 );
ret[sizeof( ret ) - 1] = '\0';
strzcpy( ret, symname, sizeof( ret ) );
}
else
{