bug fix, malloced space too small
This commit is contained in:
parent
3ddc20621a
commit
930bf53c3f
|
|
@ -1,6 +1,11 @@
|
|||
2010-10-27 Robert Larice
|
||||
* src/spicelib/devices/ltra/ltraask.c ,
|
||||
* src/spicelib/devices/tra/traask.c :
|
||||
bug fix, malloced space too small
|
||||
|
||||
2010-10-25 Holger Vogt
|
||||
* src/frontend/inpcom.c: add guards if strstr returns NULL
|
||||
|
||||
|
||||
2010-10-24 Robert Larice
|
||||
* src/frontend/inpcom.c ,
|
||||
* src/frontend/subckt.c :
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ LTRAask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *
|
|||
return (OK);
|
||||
case LTRA_DELAY:
|
||||
/*
|
||||
* value->v.vec.rVec = (double *) MALLOC(here->LTRAsizeDelay);
|
||||
* value->v.vec.rVec = (double *) MALLOC(here->LTRAsizeDelay * sizeof(double));
|
||||
* value->v.numValue = temp = here->LTRAsizeDelay; while (temp--) {
|
||||
* value->v.vec.rVec++ = *here->LTRAdelays++;
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -83,7 +83,7 @@ TRAask(CKTcircuit *ckt, GENinstance *inst, int which, IFvalue *value, IFvalue *s
|
|||
value->rValue = here->TRAbrEq2;
|
||||
return (OK);
|
||||
case TRA_DELAY:
|
||||
value->v.vec.rVec = (double *) MALLOC(here->TRAsizeDelay);
|
||||
value->v.vec.rVec = (double *) MALLOC(here->TRAsizeDelay * sizeof(double));
|
||||
value->v.numValue = temp = here->TRAsizeDelay;
|
||||
v = value->v.vec.rVec;
|
||||
w = here->TRAdelays;
|
||||
|
|
|
|||
Loading…
Reference in New Issue