memory allocation struct pwldata->vals

This commit is contained in:
h_vogt 2009-11-21 22:21:14 +00:00
parent 3c094b5f1f
commit 514c8e8573
2 changed files with 6 additions and 2 deletions

View File

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

View File

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