* 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>
}
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);