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-12845 utils: fix typos in 'lctl pcc' help
[fs/lustre-release.git]
/
lustre
/
utils
/
liblustreapi_param.c
diff --git
a/lustre/utils/liblustreapi_param.c
b/lustre/utils/liblustreapi_param.c
index
b9f86e8
..
3dd79cd
100644
(file)
--- a/
lustre/utils/liblustreapi_param.c
+++ b/
lustre/utils/liblustreapi_param.c
@@
-22,7
+22,7
@@
* This code handles user interaction with the configuration interface
* to the Lustre file system to fine tune it.
*
* This code handles user interaction with the configuration interface
* to the Lustre file system to fine tune it.
*
- * Copyright (c) 2016 Intel Corporation.
+ * Copyright (c) 2016
,
Intel Corporation.
*/
#include <errno.h>
#include <stdint.h>
*/
#include <errno.h>
#include <stdint.h>
@@
-83,7
+83,7
@@
get_lustre_param_path(const char *obd_type, const char *filter,
}
if (strlen(pattern) + 3 > sizeof(pattern))
return -E2BIG;
}
if (strlen(pattern) + 3 > sizeof(pattern))
return -E2BIG;
- strncat(pattern, "-*", sizeof(pattern));
+ strncat(pattern, "-*", sizeof(pattern)
- 1
);
break;
case FILTER_BY_FS_NAME:
rc = snprintf(pattern, sizeof(pattern) - 1, "%s-*", filter);
break;
case FILTER_BY_FS_NAME:
rc = snprintf(pattern, sizeof(pattern) - 1, "%s-*", filter);