From 6a32252403781b303d4ebd195932ce39c5b1c08e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 30 Jul 2019 16:03:58 +0200 Subject: Update to 5.43 --- hacks/ccurve.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hacks/ccurve.c') diff --git a/hacks/ccurve.c b/hacks/ccurve.c index a4423b2..874ada8 100644 --- a/hacks/ccurve.c +++ b/hacks/ccurve.c @@ -223,7 +223,7 @@ self_similar_normalized (struct state *st, double x = 0.0; double y = 0.0; - replacement = (Position*)(malloc (segment_count * sizeof (Segment))); + replacement = (Position*)(malloc (segment_count * sizeof (*replacement))); copy_points (segment_count, points, replacement); assert (fabs ((replacement [segment_count - 1].x) - 1.0) < EPSILON); assert (fabs (replacement [segment_count - 1].y) < EPSILON); -- cgit v1.2.3-55-g7522