projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5ad844
)
disk plugin: Use the DATA_MAX_NAME_LEN define for a fixed-sized buffer.
author
Florian Forster
<octo@noris.net>
Mon, 5 May 2008 09:59:09 +0000
(11:59 +0200)
committer
Florian Forster
<octo@noris.net>
Mon, 5 May 2008 09:59:09 +0000
(11:59 +0200)
src/disk.c
patch
|
blob
|
history
diff --git
a/src/disk.c
b/src/disk.c
index
e2ae14e
..
6ed71b2
100644
(file)
--- 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);