]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - monitor.c
Increase buffer for sysfs disk state
[thirdparty/mdadm.git] / monitor.c
index 4c79ce23b4308b9119f6333d1ea6aac53ac8b614..3c554abaf144f2ae1e7bd69ea3de757a1f71f83e 100644 (file)
--- a/monitor.c
+++ b/monitor.c
@@ -131,8 +131,8 @@ static enum sync_action read_action( int fd)
 
 int read_dev_state(int fd)
 {
-       char buf[60];
-       int n = read_attr(buf, 60, fd);
+       char buf[100];
+       int n = read_attr(buf, sizeof(buf), fd);
        char *cp;
        int rv = 0;