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:
@@ -75,7 +75,7 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
||||
|
||||
memset (buf, 0, sizeof (glibtop_cpu));
|
||||
|
||||
file_to_buffer(server, buffer, FILENAME);
|
||||
file_to_buffer(server, buffer, sizeof buffer, FILENAME);
|
||||
|
||||
/*
|
||||
* GLOBAL
|
||||
|
||||
Reference in New Issue
Block a user