diff options
Diffstat (limited to 'tests/bugs/replicate/bug-1250170-fsync.c')
-rw-r--r-- | tests/bugs/replicate/bug-1250170-fsync.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/bugs/replicate/bug-1250170-fsync.c b/tests/bugs/replicate/bug-1250170-fsync.c index 1d3025bcd9f..421fb5c5067 100644 --- a/tests/bugs/replicate/bug-1250170-fsync.c +++ b/tests/bugs/replicate/bug-1250170-fsync.c @@ -26,9 +26,9 @@ int main (int argc, char **argv) file = argv[1]; buf_size = 1024; - buffer = calloc(1, buf_size); + buffer = malloc(buf_size); if (!buffer) { - perror("calloc"); + perror("malloc"); return -1; } memset (buffer, 'R', buf_size); |