]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - util.c
mdadm: Specify enough length when write to buffer
[thirdparty/mdadm.git] / util.c
diff --git a/util.c b/util.c
index f1009723ed04c0422084d1b7c97bc3ba4d2b4d7e..32bd909b241d8295e0a7417fc0503618703c90b7 100644 (file)
--- a/util.c
+++ b/util.c
@@ -811,7 +811,7 @@ unsigned long calc_csum(void *super, int bytes)
 #ifndef MDASSEMBLE
 char *human_size(long long bytes)
 {
-       static char buf[30];
+       static char buf[47];
 
        /* We convert bytes to either centi-M{ega,ibi}bytes or
         * centi-G{igi,ibi}bytes, with appropriate rounding,