From e0178776546f06646c11bcb1ea345f82436d73aa Mon Sep 17 00:00:00 2001 From: Vijay Bellur Date: Mon, 19 Sep 2011 22:01:13 +0530 Subject: rpc:memcpy data of right size to auth params Change-Id: I6999e0a1463ee3475f7607990337326b3f008538 BUG: 3587 Reviewed-on: http://review.gluster.com/464 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi --- rpc/rpc-lib/src/rpc-clnt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rpc/rpc-lib') diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index 0cf7fe969..b2ea58004 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -1234,7 +1234,7 @@ rpc_clnt_record (struct rpc_clnt *clnt, call_frame_t *call_frame, ", gid: %d, owner: %"PRId64, au.pid, au.uid, au.gid, au.lk_owner); - memcpy (au.groups, call_frame->root->groups, 16); + memcpy (au.groups, call_frame->root->groups, sizeof (au.groups)); //rpc_transport_get_myname (clnt->conn.trans, myname, UNIX_PATH_MAX); //au.aup_machname = myname; -- cgit