aboutsummaryrefslogtreecommitdiff
path: root/lib/cgroup_file_handle.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cgroup_file_handle.c')
-rw-r--r--lib/cgroup_file_handle.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/cgroup_file_handle.c b/lib/cgroup_file_handle.c
index 7097b10..184e02d 100644
--- a/lib/cgroup_file_handle.c
+++ b/lib/cgroup_file_handle.c
@@ -74,8 +74,7 @@ int get_cgroup_file_handle(const char *pathname, char *cgroupfhp) {
goto clean_exit;
}
- memcpy(cgroupfhp, fhp->f_handle,
- sizeof(unsigned char) * CGROUP_FILE_HANDLE_BYTES);
+ memcpy(cgroupfhp, fhp->f_handle, CGROUP_FILE_HANDLE_BYTES);
ret = 1;
clean_exit: