summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arch/arch-x86-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arch-x86-common.h b/arch/arch-x86-common.h
index 179572d4..26a14a82 100644
--- a/arch/arch-x86-common.h
+++ b/arch/arch-x86-common.h
@@ -60,6 +60,7 @@ static inline int arch_init(char *envp[])
(unsigned int *) &str[8],
(unsigned int *) &str[4]);
+ str[11] = '\0';
if (!strcmp(str, "GenuineIntel"))
tsc_reliable = arch_init_intel(level);
else if (!strcmp(str, "AuthenticAMD"))