diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-12-28 13:40:21 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2017-01-09 13:21:40 +0100 |
commit | 6933d36755f90e23308a52c0c3b9c6a4423a9e4c (patch) | |
tree | d845ac62869d8a09fbf638a2c4bb0953efec1eb7 /source/svg | |
parent | 7a439812b2226c1e3b203ec603f05b39d159f91e (diff) | |
download | mupdf-6933d36755f90e23308a52c0c3b9c6a4423a9e4c.tar.xz |
Make fz_parse_xml take a fz_buffer. Make xps_part contain a fz_buffer.
Diffstat (limited to 'source/svg')
-rw-r--r-- | source/svg/svg-doc.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source/svg/svg-doc.c b/source/svg/svg-doc.c index 06de56f5..bfd40065 100644 --- a/source/svg/svg-doc.c +++ b/source/svg/svg-doc.c @@ -88,12 +88,8 @@ svg_open_document_with_buffer(fz_context *ctx, fz_buffer *buf) { svg_document *doc; fz_xml *root; - size_t len; - unsigned char *data; - fz_terminate_buffer(ctx, buf); - len = fz_buffer_storage(ctx, buf, &data); - root = fz_parse_xml(ctx, data, len, 0); + root = fz_parse_xml(ctx, buf, 0); doc = fz_new_document(ctx, svg_document); doc->super.drop_document = svg_drop_document; |