isrcload.c: remove memory read beyond array boundary
This commit is contained in:
parent
0bb266eab0
commit
8b86617e2d
|
|
@ -294,7 +294,7 @@ ISRCload(GENmodel *inModel, CKTcircuit *ckt)
|
|||
value = *(here->ISRCcoeffs + 1) ;
|
||||
break;
|
||||
}
|
||||
for(i=0;i<=(here->ISRCfunctionOrder/2)-1;i++) {
|
||||
for(i=0; i < (here->ISRCfunctionOrder / 2) - 1; i++) {
|
||||
if((*(here->ISRCcoeffs+2*i)==time)) {
|
||||
value = *(here->ISRCcoeffs+2*i+1);
|
||||
goto loadDone;
|
||||
|
|
|
|||
Loading…
Reference in New Issue