diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfclean.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfclean.c b/apps/pdfclean.c index c4d7b879..0cbeb77e 100644 --- a/apps/pdfclean.c +++ b/apps/pdfclean.c @@ -241,7 +241,7 @@ static void renumberobjs(void) /* Create new table for the reordered, compacted xref */ oldxref = xref->table; - xref->table = fz_malloc(xref->cap * sizeof (pdf_xrefentry)); + xref->table = fz_malloc(xref->len * sizeof (pdf_xrefentry)); xref->table[0] = oldxref[0]; /* Move used objects into the new compacted xref */ |