Browse Source

memory allocation struct pwldata->vals

pre-master-46
h_vogt 17 years ago
parent
commit
514c8e8573
  1. 4
      ChangeLog
  2. 4
      src/spicelib/parser/inpptree.c

4
ChangeLog

@ -1,3 +1,7 @@
2009-11-21 Holger Vogt
* spicelib/parser/inptree.c: memory allocation of struct pwldata->vals
failed in MS Visual Studio 2008, changed.
2009-11-20 Holger Vogt
* postsc.c: some cosmetics to postscript plot, hcopypstxcolor for
setting text color

4
src/spicelib/parser/inpptree.c

@ -797,8 +797,8 @@ static INPparseNode *prepare_PTF_PWL(INPparseNode *p)
return (NULL);
}
data = (struct pwldata *)
MALLOC(sizeof(struct pwldata) + i*sizeof(double));
data = (struct pwldata *) MALLOC(sizeof(struct pwldata));
data->vals = (double*) MALLOC(i*sizeof(double));
data->n = i;

Loading…
Cancel
Save