From 67c95c066e1e872357b42700a87aa58874873a63 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Mon, 5 May 2008 11:59:09 +0200 Subject: [PATCH] disk plugin: Use the DATA_MAX_NAME_LEN define for a fixed-sized buffer. --- src/disk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.11.0