summaryrefslogtreecommitdiff
path: root/draw/imagescale.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw/imagescale.c')
-rw-r--r--draw/imagescale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/imagescale.c b/draw/imagescale.c
index 60edadb5..d40898b1 100644
--- a/draw/imagescale.c
+++ b/draw/imagescale.c
@@ -238,7 +238,7 @@ fz_scalepixmap(fz_pixmap *src, int xdenom, int ydenom)
oh = (src->h + ydenom - 1) / ydenom;
n = src->n;
- buf = fz_malloc(ow * n * ydenom);
+ buf = fz_calloc(ydenom, ow * n);
dst = fz_newpixmap(src->colorspace, 0, 0, ow, oh);