evas svg: Fix build error

Fix build error from 9e14a57020
This commit is contained in:
junsu choi 2020-10-12 19:03:58 +09:00
parent 9e14a57020
commit d5f728bd72
1 changed files with 2 additions and 2 deletions

View File

@ -1650,12 +1650,12 @@ _copy_attribute(Svg_Node *to, Svg_Node *from)
break;
case SVG_NODE_POLYGON:
to->node.polygon.points_count = from->node.polygon.points_count;
to->node.polygon.points = malloc(to->node.polygon.points_count, sizeof(double));
to->node.polygon.points = malloc(to->node.polygon.points_count * sizeof(double));
memcpy(to->node.polygon.points, from->node.polygon.points, to->node.polygon.points_count * sizeof(double));
break;
case SVG_NODE_POLYLINE:
to->node.polyline.points_count = from->node.polyline.points_count;
to->node.polyline.points = malloc(to->node.polyline.points_count, sizeof(double));
to->node.polyline.points = malloc(to->node.polyline.points_count * sizeof(double));
memcpy(to->node.polyline.points, from->node.polyline.points, to->node.polyline.points_count * sizeof(double));
break;
default: