summaryrefslogtreecommitdiff
path: root/src/cairo-svg-glyph-render.c
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2023-01-20 20:39:29 +1030
committerAdrian Johnson <ajohnson@redneon.com>2023-01-20 20:39:29 +1030
commitae256003fb09c84d0af696f09f9d4ad07a8864e7 (patch)
treea92735aff8f4788eba4ea55dcb449ef05dbfbe52 /src/cairo-svg-glyph-render.c
parentcbcf962da267c519c73dce3cb25afc8c983e1f5b (diff)
downloadcairo-ae256003fb09c84d0af696f09f9d4ad07a8864e7.tar.gz
svg-font: fix parse bug on empty tags
Diffstat (limited to 'src/cairo-svg-glyph-render.c')
-rw-r--r--src/cairo-svg-glyph-render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-svg-glyph-render.c b/src/cairo-svg-glyph-render.c
index 176c08484..2ca0d4cea 100644
--- a/src/cairo-svg-glyph-render.c
+++ b/src/cairo-svg-glyph-render.c
@@ -1269,7 +1269,7 @@ parse_svg (cairo_svg_glyph_render_t *svg_render,
/* We should now be in a start or empty element tag */
/* find end of tag name */
- end = strpbrk(p, WHITE_SPACE_CHARS ">");
+ end = strpbrk(p, WHITE_SPACE_CHARS "/>");
if (!end) {
parse_error (svg_render, svg_document, p, "Could not find '>'");
goto fail;