summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test-file-zero-alloc-speed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test-file-zero-alloc-speed.c b/test-file-zero-alloc-speed.c
index 4954976..dcfc3b1 100644
--- a/test-file-zero-alloc-speed.c
+++ b/test-file-zero-alloc-speed.c
@@ -178,7 +178,7 @@ int do_write_chunks(char *target, int *fd, off_t len, size_t data)
unsigned long long remain = len;
char *zeros;
- zeros = calloc(1, len);
+ zeros = calloc(1, data);
printf("%llu-sized chunk run time:\n", data);
gettimeofday(&tv1, NULL);