projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e5a9d9d
)
zfs_arc plugin: leave enough room for terminating null
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>
src/zfs_arc.c
patch
|
blob
|
history
diff --git
a/src/zfs_arc.c
b/src/zfs_arc.c
index
f0d2323
..
540a1db
100644
(file)
--- a/
src/zfs_arc.c
+++ b/
src/zfs_arc.c
@@
-186,7
+186,7
@@
static int za_read (void)
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)
{