|
|
ab3721 |
diff -upr sysstat-10.1.5.orig/common.h sysstat-10.1.5/common.h
|
|
|
ab3721 |
--- sysstat-10.1.5.orig/common.h 2016-04-29 14:29:24.298889634 +0200
|
|
|
ab3721 |
+++ sysstat-10.1.5/common.h 2016-04-29 14:30:10.589577176 +0200
|
|
|
ab3721 |
@@ -69,7 +69,7 @@
|
|
|
ab3721 |
#define MAX_FILE_LEN 256
|
|
|
ab3721 |
#define MAX_PF_NAME 1024
|
|
|
ab3721 |
#define DEFAULT_DEVMAP_MAJOR 253
|
|
|
ab3721 |
-#define MAX_NAME_LEN 72
|
|
|
ab3721 |
+#define MAX_NAME_LEN 128
|
|
|
ab3721 |
|
|
|
ab3721 |
#define IGNORE_VIRTUAL_DEVICES FALSE
|
|
|
ab3721 |
#define ACCEPT_VIRTUAL_DEVICES TRUE
|
|
|
ab3721 |
diff -upr sysstat-10.1.5.orig/iostat.c sysstat-10.1.5/iostat.c
|
|
|
ab3721 |
--- sysstat-10.1.5.orig/iostat.c 2013-03-23 17:31:46.000000000 +0100
|
|
|
ab3721 |
+++ sysstat-10.1.5/iostat.c 2016-04-29 15:02:24.264492629 +0200
|
|
|
ab3721 |
@@ -748,7 +748,8 @@ void read_diskstats_stat(int curr)
|
|
|
ab3721 |
* (if different from "nodev") works around known issues
|
|
|
ab3721 |
* with EMC PowerPath.
|
|
|
ab3721 |
*/
|
|
|
ab3721 |
- strncpy(dev_name, ioc_dname, MAX_NAME_LEN);
|
|
|
ab3721 |
+ strncpy(dev_name, ioc_dname, MAX_NAME_LEN - 1);
|
|
|
ab3721 |
+ dev_name[MAX_NAME_LEN - 1] = '\0';
|
|
|
ab3721 |
}
|
|
|
ab3721 |
}
|
|
|
ab3721 |
|
|
|
ab3721 |
@@ -759,7 +760,8 @@ void read_diskstats_stat(int curr)
|
|
|
ab3721 |
*/
|
|
|
ab3721 |
dm_name = transform_devmapname(major, minor);
|
|
|
ab3721 |
if (dm_name) {
|
|
|
ab3721 |
- strncpy(dev_name, dm_name, MAX_NAME_LEN);
|
|
|
ab3721 |
+ strncpy(dev_name, dm_name, MAX_NAME_LEN - 1);
|
|
|
ab3721 |
+ dev_name[MAX_NAME_LEN - 1] = '\0';
|
|
|
ab3721 |
}
|
|
|
ab3721 |
}
|
|
|
ab3721 |
|