summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e5a9d9d)
raw | patch | inline | side by side (parent: e5a9d9d)
author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Fri, 4 Dec 2015 20:09:02 +0000 (21:09 +0100) | ||
committer | Florian Forster <octo@collectd.org> | |
Sat, 5 Dec 2015 07:41:18 +0000 (08:41 +0100) |
CID #38028
Signed-off-by: Florian Forster <octo@collectd.org>
Signed-off-by: Florian Forster <octo@collectd.org>
src/zfs_arc.c | patch | blob | history |
diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index f0d23239a82ab158c03c669f9a96cf2fc7f8dd24..540a1db48683232c0cda930665d91cf08cfcd447 100644 (file)
--- a/src/zfs_arc.c
+++ b/src/zfs_arc.c
return (-1);
}
- len = read_file_contents (ZOL_ARCSTATS_FILE, file_contents, sizeof(file_contents));
+ len = read_file_contents (ZOL_ARCSTATS_FILE, file_contents, sizeof(file_contents) - 1);
if (len > 1)
{