summaryrefslogtreecommitdiff
path: root/src/flam3-animate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/flam3-animate.c')
-rw-r--r--src/flam3-animate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flam3-animate.c b/src/flam3-animate.c
index 7f00676..402e3ee 100644
--- a/src/flam3-animate.c
+++ b/src/flam3-animate.c
@@ -213,9 +213,9 @@ int main(int argc, char **argv) {
f.bytes_per_channel = 1;
- image = (void *) malloc((size_t)channels *
+ image = (void *) calloc((size_t)channels *
(size_t)cps[0].width *
- (size_t)cps[0].height * f.bytes_per_channel);
+ (size_t)cps[0].height * f.bytes_per_channel, sizeof(char));
if (dtime < 1) {
fprintf(stderr, "dtime must be positive, not %d.\n", dtime);