strcmp() doesn't get it right

This commit is contained in:
Alex 2022-10-28 07:46:38 +03:00
parent 5cbb01dd1f
commit 2f3608d864
Signed by untrusted user who does not match committer: enderice2
GPG Key ID: EACC3AD603BAB4DD

View File

@ -10,7 +10,7 @@ namespace CPU
{
char *Vendor()
{
static char Vendor[12];
static char Vendor[13];
#if defined(__amd64__)
uint32_t rax, rbx, rcx, rdx;
x64::cpuid(0x0, &rax, &rbx, &rcx, &rdx);
@ -32,7 +32,7 @@ namespace CPU
char *Name()
{
static char Name[48];
static char Name[49];
#if defined(__amd64__)
uint32_t rax, rbx, rcx, rdx;
x64::cpuid(0x80000002, &rax, &rbx, &rcx, &rdx);
@ -76,7 +76,7 @@ namespace CPU
char *Hypervisor()
{
static char Hypervisor[12];
static char Hypervisor[13];
#if defined(__amd64__)
uint32_t rax, rbx, rcx, rdx;
x64::cpuid(0x40000000, &rax, &rbx, &rcx, &rdx);