diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-09 01:22:07 -0400 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2021-10-13 16:40:13 -0400 |
commit | 0d580b9ecc27c4bd602ba6598fb051b518a613b6 (patch) | |
tree | b2b348ffbb89ef289739668b86c1947672e50144 /src | |
parent | 3f0e47fe2717b73ccef68ca18f9f7297ee73ebb2 (diff) | |
download | libseccomp-0d580b9ecc27c4bd602ba6598fb051b518a613b6.tar.gz |
api: add missing reviewer fixes
I forgot to amend my commit to include these fixes before pushing
the last update that was merged. Fix that now.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/python/seccomp.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/seccomp.pyx b/src/python/seccomp.pyx index 73f6625..e2f9f2a 100644 --- a/src/python/seccomp.pyx +++ b/src/python/seccomp.pyx @@ -1061,8 +1061,8 @@ cdef class SyscallFilter: raise RuntimeError(str.format("Library error (errno = {0})", rc)) # Get the program. - cdef array.array data = array.array('b', bytes(len)) - cdef char[:] program = data + cdef array.array data = array.array('B', bytes(len)) + cdef unsigned char[:] program = data rc = libseccomp.seccomp_export_bpf_mem(self._ctx, <void *>&program[0], <size_t *>&len) if rc != 0: |