From 9cd581865c6ad25348b6b6d61859a1773c1728bf Mon Sep 17 00:00:00 2001 From: Roman Vasiyarov Date: Mon, 25 Apr 2011 21:34:23 +0400 Subject: [PATCH] cpupowerutils: increase MAX_LINE_LEN larger sysfs data (>255 bytes) was truncated and thus used improperly [linux@dominikbrodowski.net: adapted to cpupowerutils] Signed-off-by: Roman Vasiyarov Signed-off-by: Dominik Brodowski --- tools/power/cpupower/lib/sysfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/power/cpupower/lib/sysfs.c b/tools/power/cpupower/lib/sysfs.c index 9a35456ba6b2..870713a75a81 100644 --- a/tools/power/cpupower/lib/sysfs.c +++ b/tools/power/cpupower/lib/sysfs.c @@ -17,7 +17,7 @@ #include "cpufreq.h" #define PATH_TO_CPU "/sys/devices/system/cpu/" -#define MAX_LINE_LEN 255 +#define MAX_LINE_LEN 4096 #define SYSFS_PATH_MAX 255 -- 2.39.5