summaryrefslogtreecommitdiff
path: root/arch/arch-x86-common.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arch-x86-common.h')
-rw-r--r--arch/arch-x86-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
index 26a14a82..31aa79f1 100644
--- a/arch/arch-x86-common.h
+++ b/arch/arch-x86-common.h
@@ -54,13 +54,13 @@ static inline int arch_init_amd(unsigned int level)
static inline int arch_init(char *envp[])
{
unsigned int level;
- char str[12];
+ char str[13];
cpuid(0, &level, (unsigned int *) &str[0],
(unsigned int *) &str[8],
(unsigned int *) &str[4]);
- str[11] = '\0';
+ str[12] = '\0';
if (!strcmp(str, "GenuineIntel"))
tsc_reliable = arch_init_intel(level);
else if (!strcmp(str, "AuthenticAMD"))