From fb1223e91bb49d3a91b869d4c347e86566481ee5 Mon Sep 17 00:00:00 2001 From: Pasha Date: Wed, 19 Jul 2023 08:05:25 +0000 Subject: fix sizeof of known value --- lib/cgroup_file_handle.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/cgroup_file_handle.c') 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: -- cgit v1.2.1