summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2020-10-12 19:03:58 +0900
committerJunsuChoi <jsuya.choi@samsung.com>2020-10-12 19:03:58 +0900
commitd5f728bd72ef55bdbb45370424dd987dd1ae57b6 (patch)
tree68f92ba34d746b9120b3f09b3134accb9edb1ecf /src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
parent9e14a57020bd1a888f3b7f3568dcb7c6baf18f17 (diff)
evas svg: Fix build error
Fix build error from 9e14a57020
Diffstat (limited to '')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
index 4d5676c1df..2e78e87834 100644
--- a/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
+++ b/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
@@ -1650,12 +1650,12 @@ _copy_attribute(Svg_Node *to, Svg_Node *from)
1650 break; 1650 break;
1651 case SVG_NODE_POLYGON: 1651 case SVG_NODE_POLYGON:
1652 to->node.polygon.points_count = from->node.polygon.points_count; 1652 to->node.polygon.points_count = from->node.polygon.points_count;
1653 to->node.polygon.points = malloc(to->node.polygon.points_count, sizeof(double)); 1653 to->node.polygon.points = malloc(to->node.polygon.points_count * sizeof(double));
1654 memcpy(to->node.polygon.points, from->node.polygon.points, to->node.polygon.points_count * sizeof(double)); 1654 memcpy(to->node.polygon.points, from->node.polygon.points, to->node.polygon.points_count * sizeof(double));
1655 break; 1655 break;
1656 case SVG_NODE_POLYLINE: 1656 case SVG_NODE_POLYLINE:
1657 to->node.polyline.points_count = from->node.polyline.points_count; 1657 to->node.polyline.points_count = from->node.polyline.points_count;
1658 to->node.polyline.points = malloc(to->node.polyline.points_count, sizeof(double)); 1658 to->node.polyline.points = malloc(to->node.polyline.points_count * sizeof(double));
1659 memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double)); 1659 memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double));
1660 break; 1660 break;
1661 default: 1661 default: