--- cpufrequtils-008/utils/aperf.c 2010-07-05 17:43:17.000000000 +0200 +++ cpufrequtils-008/utils/aperf.c.new 2011-02-07 16:34:17.421278000 +0100 @@ -96,7 +96,7 @@ return -1; if (lseek(fd, idx, SEEK_CUR) == -1) goto err; - if (read(fd, val, sizeof val) != sizeof *val) + if (read(fd, val, sizeof *val) != sizeof *val) goto err; close(fd); return 0;