fix bufferoverflow
@@ -316,7 +316,7 @@ void bspline_coeff_derivative_n(unsigned int k, unsigned int n, unsigned int p,
double v1[n - p - 1];
bspline_coeff_derivative(n, p, t1, v1, t, v);
- bspline_coeff_derivative_n(k - 1, n - 1, p - 1, t2, v2, t1, v1);
+ bspline_coeff_derivative_n(k - 1, n - 2, p - 1, t2, v2, t1, v1);
}
}
