summaryrefslogtreecommitdiff
path: root/src/document.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.c')
-rw-r--r--src/document.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/document.c b/src/document.c
index b7a36d2..36d4c63 100644
--- a/src/document.c
+++ b/src/document.c
@@ -170,7 +170,7 @@ decode_trailer(struct nspdf_doc *doc,
offset += 7;
nspdf__stream_skip_ws(doc->stream, &offset);
- res = cos_parse_object(doc, &offset, &trailer);
+ res = cos_parse_object(doc, doc->stream, &offset, &trailer);
if (res != 0) {
return res;
}