From 51021a8d1ee7196f0d1d10f613f5df5ee0894bde Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 4 Dec 2015 21:09:02 +0100 Subject: [PATCH] zfs_arc plugin: leave enough room for terminating null CID #38028 Signed-off-by: Florian Forster --- src/zfs_arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zfs_arc.c b/src/zfs_arc.c index f0d23239..540a1db4 100644 --- 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) { -- 2.30.2