isrcload.c: remove memory read beyond array boundary

This commit is contained in:
h_vogt 2012-12-18 23:22:45 +01:00
parent 0bb266eab0
commit 8b86617e2d
1 changed files with 1 additions and 1 deletions

View File

@ -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;