Prevent buffer overflow

This commit is contained in:
Stas Degteff 2005-10-07 12:11:50 +00:00
parent 3177d92420
commit 626d41cfff

View File

@ -51,8 +51,8 @@
struct gcpu_info
{
char v_name[_MAX_VNAME_LEN]; // vendor name
char m_name[_MAX_MNAME_LEN]; // model name
char v_name[_MAX_VNAME_LEN+1]; // vendor name
char m_name[_MAX_MNAME_LEN+1]; // model name
int family;
int model;
int stepping;