procps/procps-v3.3.3-buffersize.diff
2012-06-04 14:22:08 +00:00

12 lines
419 B
Diff

--- proc/sysinfo.c
+++ proc/sysinfo.c 2012-06-01 14:33:02.936510627 +0000
@@ -56,7 +56,7 @@ static int vminfo_fd = -1;
// As of 2.6.24 /proc/meminfo seems to need 888 on 64-bit,
// and would need 1258 if the obsolete fields were there.
-static char buf[2048];
+static char buf[4096];
/* This macro opens filename only if necessary and seeks to 0 so
* that successive calls to the functions are more efficient.