]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - Incremental.c
Define sysfs max buffer size
[thirdparty/mdadm.git] / Incremental.c
index 3551c65ba753fdd85730067089c978a65c14e2a3..52e396237e64f54ef331e806bc9e845b849f7e59 100644 (file)
@@ -1650,7 +1650,7 @@ int IncrementalRemove(char *devname, char *id_path, int verbose)
        struct mdstat_ent *ent;
        struct mddev_dev devlist;
        struct mdinfo mdi;
-       char buf[32];
+       char buf[SYSFS_MAX_BUF_SIZE];
 
        if (!id_path)
                dprintf("incremental removal without --path <id_path> lacks the possibility to re-add new device in this port\n");