diff options
author | Pasha <pasha@member.fsf.org> | 2023-07-19 08:05:25 +0000 |
---|---|---|
committer | Pasha <pasha@member.fsf.org> | 2023-07-19 08:05:25 +0000 |
commit | fb1223e91bb49d3a91b869d4c347e86566481ee5 (patch) | |
tree | 801ecc541bce366a2d2fa9afe226b16b929f8684 /lib | |
parent | 1a13003efe953b88b34fcadef536bb09859bad34 (diff) | |
download | containercgroup-fb1223e91bb49d3a91b869d4c347e86566481ee5.tar.gz containercgroup-fb1223e91bb49d3a91b869d4c347e86566481ee5.tar.bz2 |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/cgroup_file_handle.c | 3 |
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: |