cpuid: Null terminate x86 CPU string.
[fio.git] / arch / arch-x86-common.h
index 179572d482fa550093084b55b5bd2b3d0f75c291..26a14a82375001a24cbe4b3c7466c7e580138518 100644 (file)
@@ -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"))