diff options
author | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-07-30 16:03:58 +0200 |
commit | 6a32252403781b303d4ebd195932ce39c5b1c08e (patch) | |
tree | cd2f8b3c4052c1b575caf33c9983ae531fad9092 /hacks/ccurve.c | |
parent | Remove android and OSX files (diff) | |
download | xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.gz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.tar.xz xscreensaver-6a32252403781b303d4ebd195932ce39c5b1c08e.zip |
Update to 5.43
Diffstat (limited to 'hacks/ccurve.c')
-rw-r--r-- | hacks/ccurve.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |