diff options
Diffstat (limited to 'sysdeps/linux/mem.c')
-rw-r--r-- | sysdeps/linux/mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/linux/mem.c b/sysdeps/linux/mem.c index d9964a4c..7b081de1 100644 --- a/sysdeps/linux/mem.c +++ b/sysdeps/linux/mem.c @@ -50,7 +50,7 @@ glibtop_get_mem_s (glibtop *server, glibtop_mem *buf) memset(buf, 0, sizeof *buf); - file_to_buffer(server, buffer, FILENAME); + file_to_buffer(server, buffer, sizeof buffer, FILENAME); buf->total = get_scaled(buffer, "MemTotal:"); buf->free = get_scaled(buffer, "MemFree:"); |