summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--src/svgtiny.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index fa01e2e..d9cf652 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@
# Component settings
COMPONENT := svgtiny
-COMPONENT_VERSION := 0.1.5
+COMPONENT_VERSION := 0.1.6
# Default to a static library
COMPONENT_TYPE ?= lib-static
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,