"Fossies" - the Fresh Open Source Software Archive 
Member "ipfire-2.x-2.27-core174/src/patches/cpufrequtils/0005-cpufrequtils-sysfs-increase-MAX_LINE_LEN.patch" (7 Apr 2023, 834 Bytes) of package /linux/misc/ipfire-2.x-2.27-core174.tar.gz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Diff source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
1 From 9f2efa7bc6969c10562ac2c720d50ff77083e5c2 Mon Sep 17 00:00:00 2001
2 From: Roman Vasiyarov <rvasiyarov@gmail.com>
3 Date: Mon, 25 Apr 2011 21:34:23 +0400
4 Subject: [PATCH 5/8] cpufrequtils sysfs: increase MAX_LINE_LEN
5
6 larger sysfs data (>255 bytes) was truncated and thus used improperly
7
8 Signed-off-by: Roman Vasiyarov <rvasiyarov@gmail.com>
9 Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
10 ---
11 lib/sysfs.c | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14 diff --git a/lib/sysfs.c b/lib/sysfs.c
15 index 4e0edab..24dd563 100644
16 --- a/lib/sysfs.c
17 +++ b/lib/sysfs.c
18 @@ -18,7 +18,7 @@
19 #include "cpufreq.h"
20
21 #define PATH_TO_CPU "/sys/devices/system/cpu/"
22 -#define MAX_LINE_LEN 255
23 +#define MAX_LINE_LEN 4096
24 #define SYSFS_PATH_MAX 255
25
26 /* helper function to read file from /sys into given buffer */
27 --
28 1.7.10
29