procps/procps-3.2.8-buffersize.diff

12 lines
419 B
Diff
Raw Normal View History

--- proc/sysinfo.c
+++ proc/sysinfo.c 2009-05-11 11:18:28.142402352 +0200
@@ -45,7 +45,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.