mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-07 04:53:15 +02:00
Stop after last data point, preventing read overrun of nscale.
This commit is contained in:
@@ -133,7 +133,7 @@ ft_interpolate(double *data, double *ndata, double *oscale, int olen,
|
||||
/* Now plot the rest, piece by piece. l is the
|
||||
* last element under consideration.
|
||||
*/
|
||||
for (++l; l < olen; l++) {
|
||||
for (++l; l < olen && lastone < nlen - 1; l++) {
|
||||
double out;
|
||||
|
||||
/* Shift the old stuff by one and get another value. */
|
||||
|
||||
Reference in New Issue
Block a user