fix an ancient bug, garbage and segfaults when plotting multidimensional complex data

This commit is contained in:
rlar 2010-07-31 16:47:15 +00:00
parent c6bac55ef3
commit d60bee2d40
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-07-31 Robert Larice
* src/frontend/vectors.c :
fix an ancient typo, responsible for segfault or garbage
when plotting multidimensional complex vectors
2010-07-30 Robert Larice
* src/frontend/evaluate.c :
fix an ancient typo, responsible for segfault or garbage

View File

@ -1010,7 +1010,7 @@ vec_mkfamily(struct dvec *v)
(char *) d->v_realdata, totalsize);
} else {
totalsize = sizeof (complex) * size;
d->v_realdata = (double *) tmalloc(totalsize);
d->v_compdata = (complex *) tmalloc(totalsize);
bcopy((char *) v->v_compdata + totalsize * j,
(char *) d->v_compdata, totalsize);
}