]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Monitor.c
Fix 2 dc stream buffer
[thirdparty/mdadm.git] / Monitor.c
index f54122999a14ea5a69c3c5a801130151d91e00fd..8bd3b5a19ddf02bf638dc2b3da9bde52f17cfe19 100644 (file)
--- a/Monitor.c
+++ b/Monitor.c
@@ -359,7 +359,7 @@ static int check_one_sharer(int scan)
                         "/proc/%d/comm", pid);
                comm_fp = fopen(comm_path, "r");
                if (comm_fp) {
-                       if (fscanf(comm_fp, "%s", comm) &&
+                       if (fscanf(comm_fp, "%19s", comm) &&
                            strncmp(basename(comm), Name, strlen(Name)) == 0) {
                                if (scan) {
                                        pr_err("Only one autorebuild process allowed in scan mode, aborting\n");