diff --git a/src/zfs_arc.c b/src/zfs_arc.c
index dd633d5f2287352969f1619f553c105eccd7eade..2577bb017db900904894e6f5a6f1da53a6b4c1c8 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)
{