From 626d41cfff657bc0fc04ba6bb03334c69c476060 Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Fri, 7 Oct 2005 12:11:50 +0000 Subject: [PATCH] Prevent buffer overflow --- goldlib/gall/gutlvers.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/goldlib/gall/gutlvers.cpp b/goldlib/gall/gutlvers.cpp index 1492318..032d4d9 100644 --- a/goldlib/gall/gutlvers.cpp +++ b/goldlib/gall/gutlvers.cpp @@ -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;