X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fdisk.c;h=6ed71b2853396f22eb848f504cffa16586a1d407;hb=67c95c066e1e872357b42700a87aa58874873a63;hp=e2ae14e1a4c8c4fd021cd2c7343ef8930a040f34;hpb=d5ad844588fcbcdcdd36a889c94ac33d36c1d52c;p=collectd.git diff --git a/src/disk.c b/src/disk.c index e2ae14e1..6ed71b28 100644 --- a/src/disk.c +++ b/src/disk.c @@ -671,7 +671,7 @@ static int disk_read (void) #elif defined(HAVE_LIBSTATGRAB) sg_disk_io_stats *ds; int disks, counter; - char name[16]; + char name[DATA_MAX_NAME_LEN]; if ((ds = sg_get_disk_io_stats(&disks)) == NULL) return (0);