]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
make sure 'path' buffer is large enough to fit 200 characters plus null terminator
authorBas van Schaik <bas@traiectum.net>
Thu, 3 Dec 2015 13:37:08 +0000 (13:37 +0000)
committerBas van Schaik <bas@traiectum.net>
Thu, 3 Dec 2015 13:48:53 +0000 (13:48 +0000)
mapfile.c

index 41599df05f979c22136b0084bca1f776ed15f0c5..243ded18d9fb628b1198555f532ed53c9b2a3b1b 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];