diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-12-04 22:54:08 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-12-04 22:54:08 +0000 |
commit | d62f4a4cb145b5da1ae38bea340fbc9e903f6612 (patch) | |
tree | 1cf4ba00c798d0d7520d8870f3656020526ad282 /apps | |
parent | 2f54f3ec4fb3c8c77f7c71032d6663081359296a (diff) | |
download | mupdf-d62f4a4cb145b5da1ae38bea340fbc9e903f6612.tar.xz |
Support repairing PDF documents with compressed object streams.
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 */ |