summaryrefslogtreecommitdiff
path: root/ministat.c
diff options
context:
space:
mode:
Diffstat (limited to 'ministat.c')
-rw-r--r--ministat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ministat.c b/ministat.c
index 873632a..8b29578 100644
--- a/ministat.c
+++ b/ministat.c
@@ -353,8 +353,8 @@ PlotSet(struct dataset *ds, int val)
pl->data = realloc(pl->data, pl->width * m);
memset(pl->data + pl->height * pl->width, 0,
(m - pl->height) * pl->width);
+ pl->height = m;
}
- pl->height = m;
i = -1;
for (n = 0; n < ds->n; n++) {
x = (ds->points[n] - pl->x0) / pl->dx;