summaryrefslogtreecommitdiff
path: root/source/svg
diff options
context:
space:
mode:
Diffstat (limited to 'source/svg')
-rw-r--r--source/svg/svg-doc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c
index 5404eefa..2216ad48 100644
--- a/source/svg/svg-doc.c
+++ b/source/svg/svg-doc.c
@@ -112,7 +112,10 @@ svg_open_document_with_stream(fz_context *ctx, fz_stream *file)
buf = fz_read_all(ctx, file, 0);
fz_try(ctx)
+ {
+ fz_write_buffer_byte(ctx, buf, 0);
doc = svg_open_document_with_buffer(ctx, buf);
+ }
fz_always(ctx)
fz_drop_buffer(ctx, buf);
fz_catch(ctx)