Prevent buffer overflow
This commit is contained in:
parent
3177d92420
commit
626d41cfff
@ -51,8 +51,8 @@
|
|||||||
|
|
||||||
struct gcpu_info
|
struct gcpu_info
|
||||||
{
|
{
|
||||||
char v_name[_MAX_VNAME_LEN]; // vendor name
|
char v_name[_MAX_VNAME_LEN+1]; // vendor name
|
||||||
char m_name[_MAX_MNAME_LEN]; // model name
|
char m_name[_MAX_MNAME_LEN+1]; // model name
|
||||||
int family;
|
int family;
|
||||||
int model;
|
int model;
|
||||||
int stepping;
|
int stepping;
|
||||||
|
Reference in New Issue
Block a user