Added a bufsiz argument to file_to_buffer().

Increased read buffer size in get_sysinfo().

svn path=/trunk/; revision=2637
This commit is contained in:
Benoît Dejean
2007-08-26 16:05:36 +00:00
parent 650c8f2582
commit 871f300a2c
18 changed files with 42 additions and 38 deletions

View File

@@ -193,6 +193,7 @@ read_value(glibtop *server,
char buffer[BUFSIZ];
if(try_file_to_buffer(buffer,
sizeof buffer,
"/sys/class/net/%s/statistics/%s",
device,
filename))