bug fix, const data space was used, instead of malloced area

This commit is contained in:
rlar 2010-10-27 16:59:50 +00:00
parent de35847146
commit 2b3bcfea74
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2010-10-27 Robert Larice
* src/frontend/device.c :
bug fix, const data space was used, instead of malloced area
2010-10-27 Robert Larice
* src/spicelib/devices/asrc/asrcset.c ,
* src/xspice/mif/mifgetvalue.c :

View File

@ -1069,8 +1069,7 @@ com_alter_common(wordlist *wl, int do_model)
xsbuf = wl_flatten(words);
/* fprintf(cp_err, "Chain converted %s \n",xsbuf); */
dv=(struct dvec *)MALLOC(sizeof(struct dvec));
dv->v_name = (char *)MALLOC(sizeof("real vector"));
dv->v_name = "real vector";
dv->v_name = copy("real vector");
type &= IF_VARTYPES;
if (type == IF_REALVEC) {
list = (double *)MALLOC(sizeof(double));