From: Michael Drake Date: Mon, 24 Jul 2017 13:18:53 +0000 (+0100) Subject: Fix parsing of multiple vertical lineto commands X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d5060009e934f2715a35601f7e4192702a473216;p=libsvgtiny.git Fix parsing of multiple vertical lineto commands Thanks to Nils for spotting this. --- 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,