]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
Trival: Fix warning in strncmp
authorBalbir singh <bsingharora@gmail.com>
Mon, 19 Dec 2022 15:41:51 +0000 (08:41 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Mon, 19 Dec 2022 15:42:59 +0000 (08:42 -0700)
commitecba55a594001958b253c62ba8d4e9fd5520ea94
tree6f0114e685f03f05179e5274d0046c7e4efad73c
parent9e22c33fa699488b975a2da6e09d7d649aa36184
Trival: Fix warning in strncmp

The name field of the structure is of a much smaller size
CONTROL_NAMELEN_MAX and not FILENAME_MAX. Listen to the
compiler and fix the issue.

Signed-off-by: Balbir singh <bsingharora@gmail.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
src/config.c