X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=c3127b62ecfe0351886d8a8b090af22e822da235;hb=93c4facaf7b6e35e032c3d46631097e34891d588;hp=e73a5c08cababd659f161596d3812782cd39c9fb;hpb=839dbf244f96d08c02d18e1fc64264b1740e6fc6;p=collectd.git diff --git a/src/disk.c b/src/disk.c index e73a5c08..c3127b62 100644 --- a/src/disk.c +++ b/src/disk.c @@ -493,10 +493,11 @@ static int disk_read(void) { sstrncpy(disk_name, props_disk_name_bsd, sizeof(disk_name)); else { ERROR("disk plugin: can't find bsd disk name."); - snprintf(disk_name, sizeof(disk_name), "%i-%i", disk_major, disk_minor); + ssnprintf(disk_name, sizeof(disk_name), "%i-%i", disk_major, + disk_minor); } } else - snprintf(disk_name, sizeof(disk_name), "%i-%i", disk_major, disk_minor); + ssnprintf(disk_name, sizeof(disk_name), "%i-%i", disk_major, disk_minor); DEBUG("disk plugin: disk_name = \"%s\"", disk_name);