summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSitsofe Wheeler <sitsofe@yahoo.com>2014-02-13 06:07:52 +0000
committerJens Axboe <axboe@fb.com>2014-02-13 09:09:00 -0700
commit2d60ad8ee888dcb0cabc8c561b996db79dca4b00 (patch)
treec5a94f9fe6ed101f85a79a83f5fd63c4003f31f7
parentd219028de7fe8038b018c1e84dced8576e939f5d (diff)
downloadfio-2d60ad8ee888dcb0cabc8c561b996db79dca4b00.tar.gz
fio-2d60ad8ee888dcb0cabc8c561b996db79dca4b00.tar.bz2
cpuid: Null terminate x86 CPU string.
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com> Signed-off-by: Jens Axboe <axboe@fb.com>
-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"))