[gs-commits] mupdf 1.16.1.21 Bug 701454: Don't strip XML namespace pre
[email protected] (Tor Andersson)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 95a34a7462ce27e775ac03fc7f23e17fe1a5d42c Author: Tor Andersson <[email protected]> Date: Tue Aug 27 13:18:57 2019 +0200 Bug 701454: Don't strip XML namespace prefix if there is no suffix. diff --git a/source/fitz/xml.c b/source/fitz/xml.c index 7bc3dd2..12decb4 100644 --- a/source/fitz/xml.c +++ b/source/fitz/xml.c @@ -346,7 +346,7 @@ static void xml_emit_open_tag(fz_context *ctx, struct parser *parser, char *a, c char *ns; /* skip namespace prefix */ - for (ns = a; ns < b; ++ns) + for (ns = a; ns < b - 1; ++ns) if (*ns == ':') a = ns + 1; http://git.ghostscript.com/?p=mupdf.git;a=commit;h=95a34a7462ce27e775ac03fc7f23e17fe1a5d42c -- MuPDF library Artifex Software, Inc.