Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-08-13 20:37:34 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-08-13 20:37:34 +0300
commit77e3a480a4d08a5980840fcd6e374cf2c1201cfd (patch)
tree92a5698ea4972ee88a0790c6570eb3d8b9e62436 /public/client
parent7dbfed9aeaa5a706f15fa5b74b5dbb509ce74b26 (diff)
Properly terminate CPU model string.
Diffstat (limited to 'public/client')
-rw-r--r--public/client/TracyProfiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/client/TracyProfiler.cpp b/public/client/TracyProfiler.cpp
index d95553cf..658f0b39 100644
--- a/public/client/TracyProfiler.cpp
+++ b/public/client/TracyProfiler.cpp
@@ -581,7 +581,7 @@ static const char* GetHostInfo()
#if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
uint32_t regs[4];
- char cpuModel[4*4*3];
+ char cpuModel[4*4*3+1] = {};
auto modelPtr = cpuModel;
for( uint32_t i=0x80000002; i<0x80000005; ++i )
{