mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Properly terminate CPU model string.
This commit is contained in:
parent
7dbfed9aea
commit
77e3a480a4
@ -581,7 +581,7 @@ static const char* GetHostInfo()
|
|||||||
|
|
||||||
#if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
|
#if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64
|
||||||
uint32_t regs[4];
|
uint32_t regs[4];
|
||||||
char cpuModel[4*4*3];
|
char cpuModel[4*4*3+1] = {};
|
||||||
auto modelPtr = cpuModel;
|
auto modelPtr = cpuModel;
|
||||||
for( uint32_t i=0x80000002; i<0x80000005; ++i )
|
for( uint32_t i=0x80000002; i<0x80000005; ++i )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user