/*
* Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
* Use is subject to license terms.
+ *
+ * Copyright (c) 2012, Intel Corporation.
*/
/*
* This file is part of Lustre, http://www.lustre.org/
req = &rpc->crpc_reqstmsg.msg_body.join_reqst;
req->join_sid = LST_INVALID_SID;
- strncpy(req->join_group, grp, LST_NAME_SIZE);
+ strncpy(req->join_group, grp, sizeof(req->join_group));
+ req->join_group[sizeof(req->join_group) - 1] = '\0';
sfw_post_rpc(rpc);