aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2016-10-26 15:55:11 +1300
committerDavid Phillips <david@sighup.nz>2016-10-26 15:55:11 +1300
commit7c278008f5ae15f072b2674f17c81c017b1cd348 (patch)
tree06f1a29a349f57fabace53a4d86f7f5cec528f5f
parent5ed1f38b2f515c6cebd8386de44c13a2b120c878 (diff)
downloadfractal-gen-7c278008f5ae15f072b2674f17c81c017b1cd348.tar.xz
Fix incorrect printf size_t format
-rw-r--r--fractal-gen.c2
1 files changed, 1 insertions, 1 deletions
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 */