Properly terminate CPU model string.

This commit is contained in:
Bartosz Taudul 2022-08-13 19:37:34 +02:00
parent 7dbfed9aea
commit 77e3a480a4
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 )
{