X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=monitor.c;h=3c554abaf144f2ae1e7bd69ea3de757a1f71f83e;hb=cf52eff58ab9d08e3d016c4f22da8adfc295d7e0;hp=4c79ce23b4308b9119f6333d1ea6aac53ac8b614;hpb=bbb52f2b1dd049a15323d7bccde50e5818abd175;p=thirdparty%2Fmdadm.git diff --git a/monitor.c b/monitor.c index 4c79ce23..3c554aba 100644 --- 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;