summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util/inteltool/cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/inteltool/cpu.c b/util/inteltool/cpu.c
index ff69b8cf69..d2c8ede2ca 100644
--- a/util/inteltool/cpu.c
+++ b/util/inteltool/cpu.c
@@ -110,7 +110,7 @@ static msr_t rdmsr(int addr)
static int open_and_seek(int cpu, unsigned long msr, int mode, int *fd)
{
- char dev[512];
+ char dev[32];
char temp_string[50];
snprintf(dev, sizeof(dev), "/dev/cpu/%d/msr", cpu);