summaryrefslogtreecommitdiff
path: root/apps/pdfclean.c
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2010-12-04 22:54:08 +0000
committerTor Andersson <tor@ghostscript.com>2010-12-04 22:54:08 +0000
commitd62f4a4cb145b5da1ae38bea340fbc9e903f6612 (patch)
tree1cf4ba00c798d0d7520d8870f3656020526ad282 /apps/pdfclean.c
parent2f54f3ec4fb3c8c77f7c71032d6663081359296a (diff)
downloadmupdf-d62f4a4cb145b5da1ae38bea340fbc9e903f6612.tar.xz
Support repairing PDF documents with compressed object streams.
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r--apps/pdfclean.c2
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 */