From 7c278008f5ae15f072b2674f17c81c017b1cd348 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Wed, 26 Oct 2016 15:55:11 +1300 Subject: Fix incorrect printf size_t format --- fractal-gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fractal-gen.c b/fractal-gen.c index 0a09c41..7f4e326 100644 --- a/fractal-gen.c +++ b/fractal-gen.c @@ -126,7 +126,7 @@ main(int argc, char **argv) toalloc = ceilf((double)toalloc/clust_total); if ((sections[i].data = malloc(toalloc)) == NULL) { - fprintf(stderr, "\nmalloc of %lu bytes failed\n", toalloc); + fprintf(stderr, "\nmalloc of %zd bytes failed\n", toalloc); perror("malloc"); /* Free already allocated chunks of memory */ -- cgit v1.1