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-3181 mdt: mdt_cross_open should allow open by FID on MDT1
[fs/lustre-release.git]
/
lustre
/
ptlrpc
/
sec_config.c
diff --git
a/lustre/ptlrpc/sec_config.c
b/lustre/ptlrpc/sec_config.c
index
fad999f
..
30ac1ec
100644
(file)
--- a/
lustre/ptlrpc/sec_config.c
+++ b/
lustre/ptlrpc/sec_config.c
@@
-114,8
+114,7
@@
int sptlrpc_parse_flavor(const char *str, struct sptlrpc_flavor *flvr)
return 0;
}
- strncpy(buf, str, sizeof(buf));
- buf[sizeof(buf) - 1] = '\0';
+ strlcpy(buf, str, sizeof(buf));
bulk = strchr(buf, '-');
if (bulk)