Whamcloud - gitweb
LU-14093 utils: trivial changes to support gcc10
[fs/lustre-release.git] / lustre / utils / mkfs_lustre.c
index 153a466..75979b9 100644 (file)
@@ -271,7 +271,7 @@ static inline void badopt(const char *opt, char *type)
 static int erase_param(const char *const buf, const char *const param,
                       bool withval)
 {
-       char    search[PARAM_MAX + 1] = "";
+       char    search[PARAM_MAX + 8] = "";
        char    *buffer = (char *)buf;
        bool    found = false;