summaryrefslogtreecommitdiff
path: root/xps/xps_png.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-09-21 15:01:36 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-09-21 15:01:36 +0200
commitaa7668835afffd5a2a496a60ed6edb672f5af1a7 (patch)
tree92bc58eb4ee9d4f3b30f9b9919aa148b1e330471 /xps/xps_png.c
parent69ed4a8f4dbfac7f2f1de925e34807e4fee3b27c (diff)
downloadmupdf-aa7668835afffd5a2a496a60ed6edb672f5af1a7.tar.xz
Rename malloc functions for arrays (fz_calloc and fz_realloc).
Diffstat (limited to 'xps/xps_png.c')
-rw-r--r--xps/xps_png.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xps/xps_png.c b/xps/xps_png.c
index 5a866dcc..4c8b5150 100644
--- a/xps/xps_png.c
+++ b/xps/xps_png.c
@@ -62,7 +62,7 @@ static const unsigned char png_signature[8] =
static void *zalloc(void *opaque, unsigned int items, unsigned int size)
{
- return fz_calloc(opaque, items, size);
+ return fz_malloc_array(opaque, items, size);
}
static void zfree(void *opaque, void *address)
@@ -189,7 +189,7 @@ png_deinterlace(struct info *info, int *passw, int *passh, int *passofs)
unsigned char *output;
int p, x, y, k;
- output = fz_calloc(info->ctx, info->height, stride);
+ output = fz_malloc_array(info->ctx, info->height, stride);
for (p = 0; p < 7; p++)
{