diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/pdf/pdf-write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c index 3401f59d..224da50c 100644 --- a/source/pdf/pdf-write.c +++ b/source/pdf/pdf-write.c @@ -1670,6 +1670,7 @@ static void copystream(fz_context *ctx, pdf_document *doc, pdf_write_state *opts tmp = hexbuf(ctx, data, len); fz_drop_buffer(ctx, buf); buf = tmp; + len = fz_buffer_storage(ctx, buf, &data); addhexfilter(ctx, doc, obj); } @@ -1734,6 +1735,7 @@ static void expandstream(fz_context *ctx, pdf_document *doc, pdf_write_state *op tmp = hexbuf(ctx, data, len); fz_drop_buffer(ctx, buf); buf = tmp; + len = fz_buffer_storage(ctx, buf, &data); addhexfilter(ctx, doc, obj); } |