summaryrefslogtreecommitdiff
path: root/src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c')
-rw-r--r--src/modules/evas/vg_loaders/svg/evas_vg_load_svg.c2
1 files changed, 2 insertions, 0 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 246e3e2a0e..721851e4fd 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
@@ -1651,10 +1651,12 @@ _copy_attribute(Svg_Node *to, Svg_Node *from)
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 = calloc(to->node.polygon.points_count, sizeof(double)); 1653 to->node.polygon.points = calloc(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 break; 1655 break;
1655 case SVG_NODE_POLYLINE: 1656 case SVG_NODE_POLYLINE:
1656 to->node.polyline.points_count = from->node.polyline.points_count; 1657 to->node.polyline.points_count = from->node.polyline.points_count;
1657 to->node.polyline.points = calloc(to->node.polyline.points_count, sizeof(double)); 1658 to->node.polyline.points = calloc(to->node.polyline.points_count, sizeof(double));
1659 memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double));
1658 break; 1660 break;
1659 default: 1661 default:
1660 break; 1662 break;