Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-11233 build: support for gcc8
[fs/lustre-release.git]
/
lustre
/
mgs
/
mgs_handler.c
diff --git
a/lustre/mgs/mgs_handler.c
b/lustre/mgs/mgs_handler.c
index
926b30f
..
c262706
100644
(file)
--- a/
lustre/mgs/mgs_handler.c
+++ b/
lustre/mgs/mgs_handler.c
@@
-742,7
+742,7
@@
static int mgs_extract_fs_pool(char *arg, char *fsname, char *poolname)
/* Also make sure poolname is not to long. */
if (strlen(ptr) > LOV_MAXPOOLNAME)
return -ENAMETOOLONG;
/* Also make sure poolname is not to long. */
if (strlen(ptr) > LOV_MAXPOOLNAME)
return -ENAMETOOLONG;
- strncpy(poolname, ptr,
strlen(ptr)
);
+ strncpy(poolname, ptr,
LOV_MAXPOOLNAME
);
/* Test if fsname is empty */
len = strlen(arg) - strlen(ptr) - 1;
/* Test if fsname is empty */
len = strlen(arg) - strlen(ptr) - 1;