fix incorrect usage of tmalloc/sizeof, incorrect indirection level

This commit is contained in:
rlar 2010-10-24 12:56:11 +00:00
parent bf0b7b4386
commit b96989b506
5 changed files with 11 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2010-10-24 Robert Larice
* src/misc/wlist.c ,
* src/spicelib/devices/bsim3/b3set.c ,
* src/spicelib/devices/bsim3soi/b4soiset.c ,
* src/spicelib/devices/bsim4/b4set.c :
fix incorrect usage of tmalloc/sizeof, incorrect indirection level
2010-10-24 Robert Larice
* src/frontend/com_ahelp.c ,
* src/frontend/com_display.c ,

View File

@ -144,7 +144,7 @@ wl_mkvec(wordlist *wl)
char **v;
len = wl_length(wl);
v = (char **) tmalloc((len + 1) * sizeof (char **));
v = (char **) tmalloc((len + 1) * sizeof (char *));
for (i = 0; i < len; i++) {
v[i] = copy(wl->wl_word);
wl = wl->wl_next;

View File

@ -1033,7 +1033,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
InstCount++;
}
}
InstArray = (BSIM3instance**)tmalloc(InstCount*sizeof(BSIM3instance**));
InstArray = (BSIM3instance**)tmalloc(InstCount*sizeof(BSIM3instance*));
model = (BSIM3model*)inModel;
idx = 0;
for( ; model != NULL; model = model->BSIM3nextModel )

View File

@ -2693,7 +2693,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
InstCount++;
}
}
InstArray = (B4SOIinstance**)tmalloc(InstCount*sizeof(B4SOIinstance**));
InstArray = (B4SOIinstance**)tmalloc(InstCount*sizeof(B4SOIinstance*));
model = (B4SOImodel*)inModel;
idx = 0;
for( ; model != NULL; model = model->B4SOInextModel )

View File

@ -2408,7 +2408,7 @@ if((here->ptr = SMPmakeElt(matrix,here->first,here->second))==(double *)NULL){\
InstCount++;
}
}
InstArray = (BSIM4instance**)tmalloc(InstCount*sizeof(BSIM4instance**));
InstArray = (BSIM4instance**)tmalloc(InstCount*sizeof(BSIM4instance*));
model = (BSIM4model*)inModel;
idx = 0;
for( ; model != NULL; model = model->BSIM4nextModel )