X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fzfs_arc.c;h=a3c24516b846b8f690764a49529d0e76bdf94d22;hp=d18a93f76136fda29a5ab2e395921e14a59990f8;hb=54619dc85fd308b21ed09a0271e5c7383c7921b9;hpb=6378ec288f34ff250b2971a1452338a2b34c240a diff --git a/src/zfs_arc.c b/src/zfs_arc.c index d18a93f7..a3c24516 100644 --- a/src/zfs_arc.c +++ b/src/zfs_arc.c @@ -127,7 +127,7 @@ static long long get_zfs_value(kstat_t *dummy __attribute__((unused)), size_t valuelen = sizeof(value); int rv; - snprintf(buffer, sizeof(buffer), "%s%s", zfs_arcstat, name); + ssnprintf(buffer, sizeof(buffer), "%s%s", zfs_arcstat, name); rv = sysctlbyname(buffer, (void *)&value, &valuelen, /* new value = */ NULL, /* new length = */ (size_t)0); if (rv == 0)