summaryrefslogtreecommitdiff
path: root/cbz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-04-06 09:38:24 +0100
committerRobin Watts <robin.watts@artifex.com>2012-04-06 10:08:35 +0100
commit72f739984d85050422c64c5661cf0e750aa3d49d (patch)
treec86ca233ee51a331e83f53bc7476afac5ad7f1e8 /cbz
parenta91e0a14294fe23f891051e4cf6725bf5914b05c (diff)
downloadmupdf-72f739984d85050422c64c5661cf0e750aa3d49d.tar.xz
mucbz: use fz_malloc, not malloc.
Diffstat (limited to 'cbz')
-rw-r--r--cbz/mucbz.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbz/mucbz.c b/cbz/mucbz.c
index 0050af29..1ab05799 100644
--- a/cbz/mucbz.c
+++ b/cbz/mucbz.c
@@ -233,7 +233,7 @@ cbz_read_zip_dir_imp(cbz_document *doc, int startoffset)
(void) getlong(file); /* ext file atts */
entry->offset = getlong(file);
- entry->name = malloc(namesize + 1);
+ entry->name = fz_malloc(ctx, namesize + 1);
fz_read(file, (unsigned char *)entry->name, namesize);
entry->name[namesize] = 0;