summaryrefslogtreecommitdiff
path: root/fitz/res_font.c
diff options
context:
space:
mode:
Diffstat (limited to 'fitz/res_font.c')
-rw-r--r--fitz/res_font.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/res_font.c b/fitz/res_font.c
index b32f6a61..0ef7bf20 100644
--- a/fitz/res_font.c
+++ b/fitz/res_font.c
@@ -498,8 +498,8 @@ fz_new_type3_font(fz_context *ctx, char *name, fz_matrix matrix)
int i;
font = fz_new_font(ctx, name);
- font->t3procs = fz_calloc(ctx, 256, sizeof(fz_buffer*));
- font->t3widths = fz_calloc(ctx, 256, sizeof(float));
+ font->t3procs = fz_malloc_array(ctx, 256, sizeof(fz_buffer*));
+ font->t3widths = fz_malloc_array(ctx, 256, sizeof(float));
font->t3matrix = matrix;
for (i = 0; i < 256; i++)