Commit 76b659a3 authored by Roman Vasiyarov's avatar Roman Vasiyarov Committed by Dominik Brodowski

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: default avatarRoman Vasiyarov <rvasiyarov@gmail.com>
Signed-off-by: default avatarDominik Brodowski <linux@dominikbrodowski.net>
parent ee3db6fc
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include "cpufreq.h" #include "cpufreq.h"
#define PATH_TO_CPU "/sys/devices/system/cpu/" #define PATH_TO_CPU "/sys/devices/system/cpu/"
#define MAX_LINE_LEN 255 #define MAX_LINE_LEN 4096
#define SYSFS_PATH_MAX 255 #define SYSFS_PATH_MAX 255
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment