diff options
Diffstat (limited to 'src/fseccomp/seccomp_print.c')
-rw-r--r-- | src/fseccomp/seccomp_print.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fseccomp/seccomp_print.c b/src/fseccomp/seccomp_print.c index af240307c..e22c682dc 100644 --- a/src/fseccomp/seccomp_print.c +++ b/src/fseccomp/seccomp_print.c | |||
@@ -45,7 +45,7 @@ static void load_seccomp(const char *fname) { | |||
45 | filter = malloc(size); | 45 | filter = malloc(size); |
46 | if (filter == NULL) | 46 | if (filter == NULL) |
47 | goto errexit; | 47 | goto errexit; |
48 | memset(&filter[0], 0, sizeof(filter)); | 48 | memset(filter, 0, size); |
49 | int rd = 0; | 49 | int rd = 0; |
50 | while (rd < size) { | 50 | while (rd < size) { |
51 | int rv = read(fd, (unsigned char *) filter + rd, size - rd); | 51 | int rv = read(fd, (unsigned char *) filter + rd, size - rd); |