Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> --- man2/seccomp.2 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/man2/seccomp.2 b/man2/seccomp.2 index d6b856c32..82eb04dc6 100644 --- a/man2/seccomp.2 +++ b/man2/seccomp.2 @@ -1051,6 +1051,7 @@ cecilia #include <sys/prctl.h> #define X32_SYSCALL_BIT 0x40000000 +#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) static int install_filter(int syscall_nr, int t_arch, int f_errno) @@ -1101,7 +1102,7 @@ install_filter(int syscall_nr, int t_arch, int f_errno) }; struct sock_fprog prog = { - .len = sizeof(filter) / sizeof(filter[0]), + .len = ARRAY_SIZE(filter), .filter = filter, }; -- 2.28.0