X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?p=xscreensaver;a=blobdiff_plain;f=utils%2Fspline.c;h=1a73ea61b3edb0df1b526758a9e22123d9b1dc7f;hp=d2d447771ae6a98469b18b6a3af6161f83a4ec81;hb=4ade52359b6eba3621566dac79793a33aa4c915f;hpb=ff35d056d723c9a5ffe728dbba5f1c25e141be04 diff --git a/utils/spline.c b/utils/spline.c index d2d44777..1a73ea61 100644 --- a/utils/spline.c +++ b/utils/spline.c @@ -66,7 +66,7 @@ make_spline (unsigned int size) static void grow_spline_points (spline *s) { - s->allocated_points *= 2; + s->allocated_points = 10 + (s->allocated_points * 1.3); s->points = (XPoint*)realloc (s->points, s->allocated_points * sizeof (XPoint)); if (!s->points) abort();