Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/others/bers/bers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/others/bers/bers.c b/test/others/bers/bers.c
index 0954868ff..90b70c349 100644
--- a/test/others/bers/bers.c
+++ b/test/others/bers/bers.c
@@ -138,7 +138,7 @@ static int create_files(shared_data_t *shared, int *fd, size_t nr_files)
char path[PATH_MAX];
size_t i;
- memset(fd, 0xff, sizeof(fd));
+ memset(fd, 0xff, sizeof(*fd) * MAX_CHUNK);
pr_info("\tCreating %lu files\n", shared->opt_files);