diff options
author | Roman Vasiyarov <rvasiyarov@gmail.com> | 2011-04-25 21:34:23 +0400 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2011-04-25 21:38:01 +0200 |
commit | 9f2efa7bc6969c10562ac2c720d50ff77083e5c2 (patch) | |
tree | fa1886d7a9d1b75f3d60d57cb8ec18cc1618e71a | |
parent | f87d9bf4c62d6d7017c35357f425038f25b0e3e9 (diff) | |
download | cpufrequtils-9f2efa7bc6969c10562ac2c720d50ff77083e5c2.tar.gz |
cpufrequtils sysfs: increase MAX_LINE_LEN
larger sysfs data (>255 bytes) was truncated and thus used improperly
Signed-off-by: Roman Vasiyarov <rvasiyarov@gmail.com>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | lib/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sysfs.c b/lib/sysfs.c index 4e0edab..24dd563 100644 --- a/lib/sysfs.c +++ b/lib/sysfs.c @@ -18,7 +18,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 /* helper function to read file from /sys into given buffer */ |