summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2017-07-24 13:18:53 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2017-07-24 13:18:53 (GMT)
commitd5060009e934f2715a35601f7e4192702a473216 (patch)
tree70a0e26b95fc3063d24a1313f79b2f4c1ad31abf
parentdb5bcec3fd559e354efd8de8b9656ae780c3caea (diff)
downloadlibsvgtiny-d5060009e934f2715a35601f7e4192702a473216.tar.gz
libsvgtiny-d5060009e934f2715a35601f7e4192702a473216.tar.bz2
Fix parsing of multiple vertical lineto commands
Thanks to Nils for spotting this.
-rw-r--r--src/svgtiny.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/svgtiny.c b/src/svgtiny.c
index bbefb88..69cbcf7 100644
--- a/src/svgtiny.c
+++ b/src/svgtiny.c
@@ -577,7 +577,7 @@ svgtiny_code svgtiny_parse_path(dom_element *path,
p[i++] = last_cubic_y = last_quad_y = last_y
= y;
s += n;
- } while (sscanf(s, "%f %n", &x, &n) == 1);
+ } while (sscanf(s, "%f %n", &y, &n) == 1);
/* curveto (C, c) (6 arguments) */
} else if (sscanf(s, " %1[Cc] %f %f %f %f %f %f %n", command,