]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - mapfile.c
maps: Terminate 'modes' map correctly.
[thirdparty/mdadm.git] / mapfile.c
index 41599df05f979c22136b0084bca1f776ed15f0c5..c89d403f4e32b22c9a2e682c85617f354cf86e7c 100644 (file)
--- a/mapfile.c
+++ b/mapfile.c
@@ -176,7 +176,7 @@ void map_read(struct map_ent **melp)
 {
        FILE *f;
        char buf[8192];
-       char path[200];
+       char path[201];
        int uuid[4];
        char devnm[32];
        char metadata[30];
@@ -374,7 +374,7 @@ void RebuildMap(void)
                        char dn[30];
                        int dfd;
                        int ok;
-                       int devid;
+                       dev_t devid;
                        struct supertype *st;
                        char *subarray = NULL;
                        char *path;