Code

Merge branch 'collectd-5.5'
[collectd.git] / src / zfs_arc.c
index dd633d5f2287352969f1619f553c105eccd7eade..2577bb017db900904894e6f5a6f1da53a6b4c1c8 100644 (file)
@@ -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)
        {